Skip to main contentSkip to solution

Identify the incorrect example related to application of queues.

Solution

✅ Correct Option: 3

Option 3 describes a stack (LIFO) behaviour, not a queue. The most recently closed tab is reopened first, so the last item added is the first one removed. A queue works on FIFO, where the earliest item added is served first. So this is not a queue application.


Options 1, 2 and 4: in each, requests are served in the order they arrive (print jobs, web-server requests, process scheduling), which is FIFO and so a genuine queue application.

Memory trick: "undo", "back" and "reopen closed tab" use a stack; "waiting line" tasks such as printing and scheduling use a queue.

Keyboard Shortcuts

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