Tree Data Structures questions

Q26

GATE CS 2025 CS-1Tree Data StructuresMSQ1 mark
Which of the following statement(s) is/are TRUE for any binary search tree (BST) having nn distinct integers?
More than one option can be correct.
Show answer without attempting

Answer: A, B

Q35

GATE CS 2025 CS-1Tree Data StructuresNAT1 mark
The height of any rooted tree is defined as the maximum number of edges in the path from the root node to any leaf node.
Suppose a Min-Heap TT stores 32 keys. The height of TT is _____________. (Answer in integer)
Show answer without attempting

Answer: 5

Q13

GATE CS 2025 CS-2Tree Data StructuresMCQ1 mark−1/3 if wrong
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?
Show answer without attempting

Answer: B

Q35

GATE CS 2025 CS-2Tree Data StructuresNAT1 mark
Suppose the values 10,−4,15,30,20,5,60,1910, -4, 15, 30, 20, 5, 60, 19 are inserted in that order into an initially empty binary search tree. Let TT be the resulting binary search tree.
The number of edges in the path from the node containing 19 to the root node of TT is ___________. (Answer in integer)
Show answer without attempting

Answer: 4

0/40 correct0 marks

Related topics in Programming and Data Structures