Engineering Questions with Answers - Multiple Choice Questions
Ternary Tree Multiple Choice 1 MCQ
How many child nodes does each node of Ternary Tree contain?
Explanation: Each node of Ternary tree contains at most 3 nodes. So Ternary tree can have 1, 2 or 3 child nodes but not more than that.
Which of the following is the name of the node having child nodes?
Explanation: Parent node is the node having child nodes and child nodes may contain references to their parents. Parent node is a node connected by a directed edge to its child.
What is the depth of the root node of the ternary tree?
Explanation: Depth is defined as the length of the path from root to the node. So the depth of root node in ternary tree is 0.
What is the Height of the root node of ternary tree?
Explanation: Height of ternary tree is defined as the length of path from root to deepest node in tree. Therefore, height off root node in ternary tree is 0.
Explanation: Leaf node is any node that does not contain any children. Since Node G is the node without any children, So G is called Leaf Node. While Node A is root node and Node B, Node C, Node D is parent node of their children.
Explanation: Since Root node of the ternary tree is Node 1 and also Node 1 has three children that is Node 2, Node 3, Node 4. So parent node of Node 3 and the root node of the ternary tree are same.