Skip to main contentSkip to solution

Which of the following is an incorrect statement for a deque?

Solution

✅ Correct Option: 1

A deque (double-ended queue) is a linear data structure. Its elements are stored in a sequence, one after another, so calling it a non-linear list is incorrect.


Option 4: "ordered" here means the elements keep a fixed sequence (front to rear), not that they are sorted.

Options 2 and 3: insertion and deletion at both ends is what lets a deque work as a stack (one end only) or a queue (insert at one end, remove from the other).

Keyboard Shortcuts

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