The QUEUE data structure satisfies which of the following conditions?
(A) First In First Out (FIFO) principle.
(B) It is an ordered linear list of elements.
(C) It is an unordered linear list of elements.
(D) Insertion is done at front end and deletion is done at rear end.
The QUEUE data structure satisfies which of the following conditions?
(A) First In First Out (FIFO) principle.
(B) It is an ordered linear list of elements.
(C) It is an unordered linear list of elements.
(D) Insertion is done at front end and deletion is done at rear end.
Solution
A queue removes elements in the same order in which they were added, so it follows the First In First Out (FIFO) principle, which makes (A) true. Its elements are kept in a definite sequence, as an ordered linear list, so (B) is also true.
(C): a queue is not unordered, since the order of arrival decides the order of removal.
(D): this is reversed. Insertion (enqueue) is at the rear end and deletion (dequeue) is at the front end.
Related questions:
2026: 24 May Shift 1
2025: 22 May Shift 1
2026: 18 May Shift 2