Binary Search Tree: GATE CS Previous Year Questions

Binary Search Tree · Data Structures

32 questions · asked in 17 of 27 years (2000–2026)

MCQ 26 · MSQ 2 · NAT 41-mark 20 · 2-mark 12

2000Questions per year2026

Questions 16–20 of 32

Q16GATE 20132 marksMCQ−0.67 if wrong
The preorder traversal sequence of a binary search tree is 30, 20, 10, 15, 25, 23, 39, 35, 42. Which one of the following is the postorder traversal sequence of the same tree?

Q17GATE 20131 markMCQ−0.33 if wrong
Which one of the following is the tightest upper bound that represents the time complexity of inserting an object into a binary search tree of n nodes?

Q18GATE 20112 marksMCQ−0.67 if wrong
We are given a set of n distinct elements and an unlabeled binary tree with n nodes. In how many ways can we populate the tree with the given set so that it becomes a binary search tree?

Q19GATE 20082 marksMCQ−0.67 if wrong
How many distinct BSTs can be constructed with 3 distinct keys?

Q20GATE 20082 marksMCQ−0.67 if wrong
A Binary Search Tree (BST) stores values in the range 37 to 573. Consider the following sequence of keys.

I. 81,537,102,439,285,376,305
II. 52,97,121,195,242,381,472
III. 142,248,520,386,345,270,307
IV. 550,149,507,395,463,402,270

Which of the following statements is TRUE?

Keep practising

Topics in Data Structures

All CS topics ›