Questions: Tree Structure and Node Properties

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A node v in a binary tree has depth 4. What is the height of node v?

A4, because height and depth are measured along the same path from the root
BThe tree's total height minus 4, because depth and height always sum to the tree's height
CCannot be determined — height depends on v's subtree below it, not its distance from the root
D0, because nodes at even depth are always leaves
Question 2 Multiple Choice

Integer keys 1, 2, 3, 4, 5 are inserted in order into an initially empty binary search tree. What is the height of the resulting tree, and what does this reveal?

AHeight 2; the BST insertion algorithm automatically balances after each insertion
BHeight 4; the tree degenerates into a right-leaning chain, giving O(n) search time instead of O(log n)
CHeight 3; BST insertion always produces a tree of height ⌈log₂ n⌉ for n elements
DHeight 5; each new node always becomes a leaf at the maximum possible depth
Question 3 True / False

The height of a tree equals the depth of its deepest leaf.

TTrue
FFalse
Question 4 True / False

In a binary tree, most internal node has exactly 2 children.

TTrue
FFalse
Question 5 Short Answer

Explain why an unbalanced binary search tree can degrade to O(n) search time, and why this makes the tree's height the critical structural property for performance.

Think about your answer, then reveal below.