Which abstract data structure operates on a First-In, First-Out (FIFO) ordering principle?

Answer and explanation

Correct answer: A. Queue

  1. Step 1: Define standard linear collection operational orderings.
  2. Step 2: A Queue enqueues elements at the rear and dequeues from the front, enforcing strict First-In, First-Out (FIFO) ordering.
Answer
Queue.
Why not the others: A Stack operates on LIFO (Last-In, First-Out); a Binary heap is a priority-based tree; a Hash table provides associative key-value lookup.

Practise more Algorithms and Python Programming.

Free questions with an explanation for every one, and full timed EmSAT Achieve (UAE) mock tests.