Multiple choice

If the characters 'D', 'C', 'B', 'A' are placed in a queue (in that order), and then removed one at a time, in what order will they be removed?

  1. ABCD

  2. ABDC

  3. DCAB

  4. DCBA

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

A queue follows FIFO (First-In-First-Out) ordering. When elements are enqueued as D, C, B, A, they exit in that same order: D first, then C, then B, then A. This is the defining behavior of queues versus stacks (LIFO). Option D correctly shows DCBA as the removal order.