Skip to main contentSkip to solution

Elements 'C', 'O', 'M', 'P' are present in the queue and they are deleted one at a time. _______ is the sequence of element received.

Solution

✅ Correct Option: 2

A queue follows FIFO (First In, First Out): the element inserted first is deleted first. With 'C', 'O', 'M', 'P' in the queue in that order, deletion removes them in the same order: C, then O, then M, then P.


Option 1: this is the reverse order, which a stack (LIFO) would give, not a queue.

Keyboard Shortcuts

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