1.

Which node is the parent node of Node 5?(a) 1(b) 5(c) 2(d) 3I'm obligated to ask this question of K-ary tree topic in division Trees of Data Structures & Algorithms IThis question was posed to me in semester exam.

Answer»

The correct CHOICE is (c) 2

To explain: SINCE Node 2 has two children Node 5 and Node 6, So Node 2 is the parent node of Node 5. While Node 1 is ROOT node and Node 3 and Node 5 are Leaf node.



Discussion

No Comment Found

Related InterviewSolutions