...
Software-Engineering
November 15, 2023
Data-Structures
November 15, 2023
Software-Engineering
November 15, 2023
Data-Structures
November 15, 2023

Data-Structures

Question 42

Which of the following statements is false?

A
A tree with a n nodes has (n – 1) edges
B
A labeled rooted binary tree can be uniquely constructed given its postorder and preorder traversal results
C
A complete binary tree with n internal nodes has (n + 1) leaves
D
Both B and C
Question 42 Explanation: 
A: Tree with n nodes must have (n-1) edges.
D: The maximum no. of nodes in a binary tree of height h is 2h+1 – 1.
h=2 ⇒ 23 – 1 ⇒ 7
Correct Answer: D
Question 42 Explanation: 
A: Tree with n nodes must have (n-1) edges.
D: The maximum no. of nodes in a binary tree of height h is 2h+1 – 1.
h=2 ⇒ 23 – 1 ⇒ 7

Leave a Reply

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