To support enqueue and dequeue operations, which of the following operations are used?
(A) isEmpty
(B) isfull
(C) peek
(D) seek
To support enqueue and dequeue operations, which of the following operations are used?
(A) isEmpty
(B) isfull
(C) peek
(D) seek
Solution
✅ Correct Option: 3
A queue supports enqueue and dequeue with three helper operations. isFull checks for overflow before enqueue, isEmpty checks for underflow before dequeue, and peek reads the front element without removing it.
Options 1, 2 and 4: (D) seek is not a queue operation. It is used to move a file pointer in file handling.
Related questions:
2026: 26 May Shift 1
2026: 29 May Shift 1
2025: 3 June Shift 2