Skip to main contentSkip to solution

What happens when a deletion operation is performed on an empty queue?

Solution

✅ Correct Option: 2

Deleting from an empty queue is called underflow, because there is no element to remove. Overflow is the opposite case: inserting into a full queue.


Option 1: overflow happens on insertion into a full queue, not on deletion from an empty one.

Option 4: stack overflow relates to a stack (or call stack) exceeding its capacity, not to deleting from a queue.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question