In a shop, customers are provided the service as a first-come-first-served policy. But some special customers can be served at any time based on…

In a shop, customers are provided the service as a first-come-first-served policy. But some special customers can be served at any time based on their importance. Which data structure most fits this scenario?

  1. a) Stack
  2. b) Queue
  3. c) Priority Queue
  4. d) Dequeue

From the Combined Bank Assistant Programmer (CSE) March 2021 – Preliminary exam, question 4 of 86.

More from this paper