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 6–10 of 32

Q6GATE 2024 (Session 2)2 marksMCQ−0.67 if wrong
You are given a set VV of distinct integers. A binary search tree TT is created by inserting all elements of VV one by one, starting with an empty tree. The tree TT follows the convention that, at each node, all values stored in the left subtree of the node are smaller than the value stored at the node. You are not aware of the sequence in which these values were inserted into TT, and you do not have access to TT.
Which one of the following statements is TRUE?

Q7GATE 20221 markNAT
Suppose a binary search tree with 1000 distinct elements is also a complete binary tree. The tree is stored using the array representation of binary heap trees. Assuming that the array indices start with 0, the 3rd largest element of the tree is stored at index _______.

Q8GATE 2021 (Session 1)1 markMCQ−0.33 if wrong
A binary search tree T contains n distinct elements. What is the time complexity of picking an element in T that is smaller than the maximum element in T?

Q9GATE 20201 markMCQ−0.33 if wrong
The preorder traversal of a binary search tree is 15,10,12,11,20,18,16,19. Which one of the following is the postorder traversal of the tree?

Q10GATE 2017 (Session 1)1 markMCQ−0.33 if wrong
Let T be a binary search tree with 15 nodes. The minimum and maximum possible heights of T are :
Note: The height of a tree with a single node is 0.

Keep practising

Topics in Data Structures

All CS topics ›