Which of the following is an incorrect statement for a deque?
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).
Related questions:
2025: 15 May Shift 2
2025: 27 May Shift 2
2026: 29 May Shift 1
2025: 21 May Shift 1
2025: 22 May Shift 1