Skip to main contentSkip to solution

_________ is a version of queue that allows insertion and deletion at both ends.

Solution

✅ Correct Option: 2

A deque (double-ended queue) allows insertion and deletion at both the front and the rear. It can behave as a stack or as a normal queue, depending on which ends are used.


Option 1: Enqueue is an operation (insertion at the rear of a queue), not a type of queue.

Option 3: A circular queue still inserts only at the rear and deletes only at the front. It just wraps the end back to the start to reuse space.

Option 4: A stack uses one end only (LIFO), so insertion and deletion both happen at the top.

Keyboard Shortcuts

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