...
GATE 1995
February 13, 2024
Question 10083 –
February 13, 2024
GATE 1995
February 13, 2024
Question 10083 –
February 13, 2024

GATE 1995

Question 17

A binary tree T has n leaf nodes. The number of nodes of degree 2 in T is:

A
log2 n
B
n – 1
C
n
D
2n
Question 17 Explanation: 
A binary tree is a tree data structure in which each node has atmost two child nodes.
The no. of subtrees of a node is called the degree of the node. In a binary tree, all nodes have degree 0, 1 and 2.
The degree of a tree is the maximum degree of a node in the tree. A binary tree is of degree 2.
The number of nodes of degree 2 in T is “n – 1”.
Correct Answer: B
Question 17 Explanation: 
A binary tree is a tree data structure in which each node has atmost two child nodes.
The no. of subtrees of a node is called the degree of the node. In a binary tree, all nodes have degree 0, 1 and 2.
The degree of a tree is the maximum degree of a node in the tree. A binary tree is of degree 2.
The number of nodes of degree 2 in T is “n – 1”.

Leave a Reply

Your email address will not be published. Required fields are marked *