(a) The court shall ascertain, from the evidence in case of default or from the confession by answer of the parties, if they appear, and shall declare the rights, titles, and interests of all the parties to the proceedings, petitioners as well as defendants, so far as they shall have appeared.
(b) The court shall determine the rights of the parties in the lands and tenements and give judgment that partition be made between such of them as shall have any right therein, in accordance with the right thus ascertained.