Skip to main contentSkip to solution

Solution

✅ Correct Option: 3

The diagram shows a linear structure where both ends, Front and Rear, allow insertion (push) and deletion (pop). This is a deque (double-ended queue).


Stack: insertion and deletion happen at one end only (the top).

Queue: insertion is only at the rear and deletion is only at the front.

Circular queue: the last position links back to the first, but this diagram is a straight, linear structure.

A deque can work as both a stack and a queue, depending on which ends are used.

Keyboard Shortcuts

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