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 16–20 of 32

Q16GATE 2015 (Session 3)1 markMCQ−0.33 if wrong
Consider the following array of elements.
(89,19,50,17,12,15,2,5,7,11,6,9,100)
The minimum number of interchanges needed to convert it into a max-heap is

Q17GATE 2014 (Session 2)1 markMCQ−0.33 if wrong
A priority queue is implemented as a Max-Heap. Initially, it has 5 elements. The level-order traversal of the heap is: 10, 8, 5, 3, 2. Two new elements 1 and 7 are inserted into the heap in that order. The level-order traversal of the heap after the insertion of the elements is:

Q18GATE 20111 markMCQ−0.33 if wrong
A max-heap is a heap where the value of each parent is greater than or equal to the value of its children. Which of the following is a max-heap?
10 8 6 4 5 2 1 10 8 6 4 5 1 2 10 5 6 4 8 2 1 5 2 8 1 4 6 10 (A) (B) (C) (D)

Q19GATE 20092 marksMCQ−0.67 if wrong
Consider a binary max-heap implemented using an array.

What is the content of the array after two delete operations on {25,14,16,13,10,8,12}

Q20GATE 20092 marksMCQ−0.67 if wrong
Consider a binary max-heap implemented using an array.

Which one of the following array represents a binary max-heap?

Keep practising

Topics in Data Structures

All CS topics ›