What is the Height of the root node of K-ary tree?

Category: QuestionsWhat is the Height of the root node of K-ary tree?
Editor">Editor Staff asked 1 month ago

What is the Height of the root node of K-ary tree?
 
(a) 1
 
(b) 2
 
(c) 3
 
(d) 0
 
Asked question is from K-ary tree in division Trees of Data Structures & Algorithms I
 
I have been asked this question in semester exam.

1 Answers
Editor">Editor Staff answered 1 month ago

Correct option is (d) 0
 
For explanation: Height of K-ary tree is defined as the length of path from root to deepest node in tree. Therefore, height of root node in K-ary tree is 0.