Identify the statements that hold TRUE in the case of a queue:
(A) Ordered linear list of elements works on FIFO principle.
(B) The elements that has been shortest in the queue will be removed first.
(C) Insertion is from REAR end and deletion is from FRONT end.
(D) The element entering first in the queue will be the first one to come out.
Identify the statements that hold TRUE in the case of a queue:
(A) Ordered linear list of elements works on FIFO principle.
(B) The elements that has been shortest in the queue will be removed first.
(C) Insertion is from REAR end and deletion is from FRONT end.
(D) The element entering first in the queue will be the first one to come out.
Solution
A queue is an ordered linear list that follows FIFO (First In, First Out). Elements are inserted (enqueue) at the REAR end and deleted (dequeue) at the FRONT end, so the element that entered first is the first to leave. This makes (A), (C) and (D) true.
Statement (B) is false: it describes LIFO, as in a stack. In a queue, the element that has been waiting the longest is removed first, not the one that has been there the shortest time.
Related questions:
2026: 26 May Shift 1
2026: 29 May Shift 1
2025: 14 May Shift 1
2025: 21 May Shift 1