Toll Plaza simulation is an application of .......... .
2024
Toll Plaza simulation is an application of .......... .
- A.
Queue
- B.
Stack
- C.
Object
- D.
Class
Attempted by 767 students.
Show answer & explanation
Correct answer: A
A toll plaza simulation involves managing vehicles arriving and departing at a checkpoint. This process requires maintaining the order in which vehicles arrive to ensure fair service.
The appropriate data structure must support First-In-First-Out operations. Vehicles enter the line and are processed in the exact sequence of their arrival.
This sequential processing matches the fundamental behavior of a queue. It ensures that the first vehicle to arrive is the first to be served.