GATE CS 2025 Set 2 | Question 13
Programming & Data Structures › Trees · MCQ · 1 mark · Answer: B
- Question 13Programming & Data Structuresmcq1 markConsider a binary tree in which every node has either zero or two children. Let be the number of nodes in . Which ONE of the following is the number of nodes in that have exactly two children?
- A.
- B.✓
- C.
- D.
Answer: B
Solution
Answer: (B) In a full binary tree, the number of leaves equals (internal nodes) . Let be the internal nodes (each with two children). Then - A.
More GATE PYQ on Trees
All GATE CS Programming & Data Structures PYQ →Attempt GATE CS 2025 Set 2 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →