Multiple choice

A tree data structure has 100 nodes. What is the number of nodes in this tree having no ancestor?

  1. 50

  2. 1

  3. 0

  4. 55

  5. None of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Yes, this is  true as the node which has no ancestors is the root node because root node itself is the ancestor of all the remaining nodes in the tree.