Heap Tree: GATE CS Previous Year Questions

Heap Tree · Data Structures

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

MCQ 27 · MSQ 1 · NAT 41-mark 19 · 2-mark 13

2000Questions per year2026

Questions 1–5 of 32

Q1GATE 2026 (Session 1)1 markMSQ
Let nn be an odd number greater than 100100. Consider a binary minheap with nn elements stored in an array PP whose index starts from 11.
Which of the following indices of PP do/does NOT correspond to any leaf node of the minheap?

One or more options are correct.

Q2GATE 2025 (Session 1)1 markNAT
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)

Q3GATE 2025 (Session 2)2 marksMCQ−0.67 if wrong
A meld operation on two instances of a data structure combines them into one single instance of the same data structure. Consider the following data structures:

P: Unsorted doubly linked list with pointers to the head node and tail node of the list.
Q: Min-heap implemented using an array.
R: Binary Search Tree.

Which ONE of the following options gives the worst-case time complexities for meld operation on instances of size nn of these data structures?

Q4GATE 2024 (Session 1)2 marksMCQ−0.67 if wrong
An array [82,101,90,11,111,75,33,131,44,93][82,101,90,11,111,75,33,131,44,93] is heapified. Which one of the following options represents the first three elements in the heapified array?

Q5GATE 2024 (Session 1)2 marksMCQ−0.67 if wrong
Consider a binary min-heap containing 105 distinct elements. Let kk be the index (in the underlying array) of the maximum element stored in the heap. The number of possible values of kk is

Keep practising

Topics in Data Structures

All CS topics ›