1. Home
  2. Computer Science MCQs
  3. Algorithms and Data Structures
  4. In a min-heap, the root node always contains:

Added 2 Nov 2026

In a min-heap, the root node always contains:

  1. The median element
  2. The most recent element
  3. The smallest element Correct answer
  4. The largest element

Correct answer

C. The smallest element

16 views

MCQSEXAM

Explanation

The min-heap property makes every parent ≤ its children, so the minimum sits at the root, available in O(1). This makes heaps ideal for priority queues.

Reference

Asked in: GATE CS, NTS, Technical Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Algorithms and Data Structures MCQs

Practise all Algorithms and Data Structures MCQs

Similar MCQs