GATE DA 2024 Q52: Bounds on height, nodes and leaves of a binary tree
- Programming, Data Structures and Algorithms
- 2 marks
- MSQ
- No negative marking
Question
Let , , , and represent height, number of internal nodes, number of leaf nodes, and the total number of nodes respectively in a rooted binary tree.
Which of the following statements is/are always TRUE?
Try it: multiple select: one or more correct options
Show answer and explanation
Answer: A, B, C (official GATE 2024 final answer key)
Concept used: Counting nodes level by level: level has at most nodes, and a path of length needs internal nodes.
First step: Test the extremes: a path (one node per level) and a complete tree. A path has , which rules out D.
Full step-by-step solution
Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.
Share this question
Source: official GATE 2024 DA question paper and final answer key, organised by IISc Bangalore. Question paper · Answer key
More Programming, Data Structures and Algorithms PYQs
- 2026 · Q15Expected-time recurrence for randomised-input quicksort
- 2026 · Q16Python mutable default argument output
- 2026 · Q25Binary tree from preorder and inorder traversals
- 2026 · Q31Worst-case comparisons in binary search of 1000 elements
- 2026 · Q39Number of calls made by a Fibonacci-like recursion
- 2026 · Q40Reachability in a graph and its reverse