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?

  1. A.

    Function call recursion

  2. B.

    Depth-first search in graphs

  3. C.

    Printer job scheduling

  4. 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.

Explore the full course: Btsc Lab Assistant