ProgrammingModerate

A complete binary tree has levels 0 to 2 (depth 3 in this count). How many nodes does it have?

  1. A. 7
  2. B. 6
  3. C. 8
  4. D. 15

Correct answer: A. 7

Each full level doubles the count: 1 + 2 + 4 = 7 nodes in total.

More C Programming questions

Exams that ask this topic