The data structure queue supports which of the following operations?
(A) ENQUEUE
(B) DEQUEUE
(C) APPEND
(D) RAISE
The data structure queue supports which of the following operations?
(A) ENQUEUE
(B) DEQUEUE
(C) APPEND
(D) RAISE
Solution
✅ Correct Option: 4
A queue follows the FIFO (First In, First Out) rule. ENQUEUE adds an element at the rear, and DEQUEUE removes an element from the front. These are the two standard queue operations.
APPEND: this is a list operation (adding to the end of a list), not a standard queue operation. It is the likely trap in Option 1.
RAISE: this is used for raising exceptions in programming, and it has nothing to do with queues.
Related questions:
2026: 29 May Shift 2
2026: 26 May Shift 1