Which of the following applications is best suited to use a queue?
2023
Which of the following applications is best suited to use a queue?
- A.
Function call recursion
- B.
Depth-first search in graphs
- C.
Printer job scheduling
- D.
Undo feature in a text editor
Attempted by 187 students.
Show answer & explanation
Correct answer: C
The correct option is C. A queue operates on a First-In-First-Out (FIFO) basis, where tasks are processed in the order they arrive. Printer job scheduling perfectly uses this mechanism to print documents in a fair, sequential order, making it the best-suited application.