When the insertion and deletion of the elements are done only from the opposite ends of a dequeue, it is same as-
When the insertion and deletion of the elements are done only from the opposite ends of a dequeue, it is same as-
Solution
✅ Correct Option: 3
If insertion is done at one end (rear) and deletion at the opposite end (front), the first element inserted is the first one removed. This is FIFO order, which is exactly how a queue works.
Option 2: a stack uses the same end for both insertion and deletion (LIFO), so it needs the same end, not opposite ends.
Restricting a dequeue to one end for both operations gives a stack, and using opposite ends gives a queue.
Related questions:
2026: 29 May Shift 1
2026: 31 May Shift 1
2025: 15 May Shift 2
2026: 20 May Shift 1
2026: 18 May Shift 2