Which of the following statement is correct for queue?
Which of the following statement is correct for queue?
Solution
✅ Correct Option: 2
A queue follows FIFO (First In, First Out): the element inserted first is the one removed first. Insertion happens at the rear and deletion at the front, like people standing in a line.
Option 1: a queue is a linear data structure, since elements are arranged in a sequence.
Option 3: Python can handle queues using a list, collections.deque or the queue module.
Option 4: this describes a deque (double-ended queue). In a simple queue, insertion is only at the rear and deletion only at the front.
Related questions:
2026: 11 May Shift 2
2025: 16 May Shift 1