Skip to content
GATEiit

GATE CSE 2025 Session 2 Q13: Internal nodes in a full binary tree with n nodes

Question

Consider a binary tree TT in which every node has either zero or two children. Let n>0n > 0 be the number of nodes in TT.

Which ONE of the following is the number of nodes in TT that have exactly two children?

Try it: multiple choice: exactly one correct option

Select one option
Wrong answer costs 1/3 mark in GATE.
Show answer and explanation

Answer: B (official GATE 2025 final answer key)

Concept used: In a full binary tree, leaves = internal nodes + 1.

First step: Let ii be the internal nodes; then there are i+1i + 1 leaves and n=2i+1n = 2i + 1.

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

WhatsAppDownload image

Source: official GATE 2025 Session 2 CS question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key