Skip to main contentSkip to solution

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.

Keyboard Shortcuts

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