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?
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
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.
Related questions:
2026: 29 May Shift 2
2026: 20 May Shift 1
2026: 29 May Shift 1