Similar questions 4 more → · asked again: GATE 2015 Set 2, Q23, GATE 2015 Set 3, Q21
Tree Properties & Traversals

Answer & solution
Answer: B: n−1 (no official key was published)
Let n0,n1,n2 count nodes with zero, one and two children. The tree has n0+n1+n2−1 edges because it is connected and acyclic. Counting edges by parents gives n1+2n2. Equating the two expressions yields n2=n0−1=n−1. Unary nodes cancel and therefore do not alter the relationship. Here degree two means two children, the rooted-tree convention; interpreting it as undirected graph degree would be a different question.