GATE CS 2015, set 1 · Question 15 · Programming and Data Structures · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

The height of a tree is the length of the longest root-to-leaf path in it. The maximum and minimum number of nodes in a binary tree of height 5 are

  1. (A) 63 and 6, respectively
  2. (B) 64 and 5, respectively
  3. (C) 32 and 6, respectively
  4. (D) 31 and 5, respectively
Answer

Answer (A)

Answer from the official GATE CS 2015 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes