Data Ingestion and Transformation
Which data structure removes records in the same order they were inserted?
Show the answer
Correct answerD. Queue
AWhy not this: A hash table supports key-based access rather than first-in, first-out removal.
BWhy not this: A stack removes the most recently inserted record first.
CWhy not this: A binary search tree organizes records by key rather than insertion order.
DWhy this is right: A queue removes the earliest inserted record first.
A queue uses first-in, first-out ordering, so the earliest inserted record is removed first. A stack instead uses last-in, first-out ordering.