GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2026 set1

GATE 2026 set1 · CS · MSQ · 1 mark · Programming and Data Structures › Heaps

GATE 2026 set1 Computer Science and Information Technology question: Let n be an odd number greater than 100. Consider a binary minheap with n elements…

Let be an odd number greater than 100. Consider a binary minheap with elements stored in an array whose index starts from 1.

Which of the following indices of do/does NOT correspond to any leaf node of the minheap?

  1. (A)

  2. (B)

  3. (C)

  4. (D)

Show answer

Official answer: B,C

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion