Skip to content

GATE CS Binary Heaps questions

Practise Binary Heaps questions for GATE CS. Explore official PYQs and original topic-wise quizzes, check answers and view available solutions. Free, no sign-in.

Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.

6 on this page
Official PYQ2006Programming and Data StructuresBinary HeapsMCQ · 1 mark
In a binary max heap containing nn numbers, the smallest element can be found in time
Official PYQ2005Programming and Data StructuresBinary HeapsMCQ · 1 mark
A priority queue is implemented as a Max-Heap. Initially, it has 55 elements. The level-order traversal of the heap is: 10,8,5,3,210, 8, 5, 3, 2. Two new elements 11 and 77 are inserted into the heap in that order. The level-order traversal of the heap after the insertion of the elements is:
Official PYQ2004Programming and Data StructuresBinary HeapsMCQ · 1 mark
The elements 32,15,20,30,12,25,16,32, 15, 20, 30, 12, 25, 16, are inserted one by one in the given order into a maxHeap. The resultant maxHeap is
Official PYQ2003Programming and Data StructuresBinary HeapsMCQ · 1 mark
In a min-heap with nn elements with the smallest element at the root, the 7th7^{th} smallest element can be found in time
Official PYQ2001Programming and Data StructuresBinary HeapsMCQ · 1 mark
Consider any array representation of an nn element binary heap where the elements are stored from index 11 to index nn of the array. For the element stored at index ii of the array (i≤n)(i \leq n), the index of the parent is
Official PYQ1996Programming and Data StructuresBinary HeapsMCQ · 1 mark
The minimum number of interchanges needed to convert the array into a max-heap is 89,19,40,17,12,10,2,5,7,11,6,9,7089, 19, 40, 17, 12, 10, 2, 5, 7, 11, 6, 9, 70