1. Home
  2. Engineering
  3. Computer Engineering
  4. Which statement is correct? A heap

Added 28 Nov 2026

Which statement is correct? A heap

  1. Follows the last-in first-out (LIFO) principle
  2. Is a complete binary tree used to implement priority queues Correct answer
  3. Uses a stack or recursion to explore a graph
  4. Has pointers to both the next and the previous node

Correct answer

B. Is a complete binary tree used to implement priority queues

MCQSEXAM

Explanation

A heap is a complete binary tree used to implement priority queues.

Reference

Asked in: Engineering Computer Engineering Practice

https://en.wikipedia.org/wiki/Data_structure

Preparing for an exam?

Doubts & discussion

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

Ask a doubt about this MCQ

Shown after review. No links please.

More Computer Engineering MCQs

Practise all Computer Engineering MCQs

Similar MCQs