Skip to main contentSkip to solution

Sometimes, on calling a customer service center, the Interactive Voice Response System (IVRS) tells us to wait till a support person is available. Which data structure this application is of?

Solution

✅ Correct Option: 4

Callers are served in the order they called, so the first caller to wait is the first to be attended. This is First In First Out (FIFO), which is the rule of a queue.


Option 1: Enqueue is only the operation that adds an item to the rear of a queue, not a data structure.

Option 3: A stack follows Last In First Out (LIFO), so the latest caller would be served first, which is unfair for waiting calls.

Other FIFO examples: printer job scheduling, ticket counters, CPU task scheduling.

Keyboard Shortcuts

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