Skip to main contentSkip to solution

What is a DEQUEUE operation on queue?

Solution

✅ Correct Option: 3

A queue follows FIFO (First In, First Out). DEQUEUE removes and returns the element at the front of the queue, which is the one that has been waiting the longest.


Option 1: this describes ENQUEUE, which adds an element at the rear.

Option 4: removal from the rear is not allowed in a simple queue. It is possible only in a deque (double-ended queue).

Do not confuse DEQUEUE (remove from a queue) with DEQUE (a double-ended queue data structure).

Keyboard Shortcuts

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