Skip to main contentSkip to solution

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.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question