Multiple choice

What type of data structure is a queue?

  1. LIFO linear data structure

  2. FIFO linear data structure

  3. LIFO non-linear data structure

  4. FIFO non-linear data structure

  5. GIGO non-linear data structure

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

A queue is a First-In-First-Out (FIFO) data structure. In a FIFO data structure, the first element added to the queue will be the first one to be removed.. A queue is an example of a linear data structure, or more abstractly a sequential collection.