Computer Science and Information Technology
GATE CSE concept:binary-search-trees PYQs
Build your understanding with focused practice from past exam papers.
Questions 11–13 of 13. Imported answers require independent review unless marked reviewed.
Question 40
Open questionCSMCQ2 marksNeeds review
Consider the following statements:
I. The smallest element in a max-heap is always at a leaf node
II. The second largest element in a max-heap is always a child of the root node
III. A max-heap can be constructed from a binary search tree in
time
IV. A binary search tree can be constructed from a max-heap in
time
Which of the above statements are TRUE?Your answerChoose one option.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 6
Open questionCSMCQ1 markNeeds review
Let
be a binary search tree with 15 nodes. The minimum and maximum possible heights of
are:Note: The height of a tree with a single node is 0.
Your answerChoose one option.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 36
Open questionCSMCQ2 marksNeeds review
The pre-order traversal of a binary search tree is given by 12, 8, 6, 2, 7, 9, 10, 16, 15, 19, 17, 20. Then the post-order traversal of this tree is:
Your answerChoose one option.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer