Multiple Choice
You need to write a program to simulate the effect of adding an additional cashier in a supermarket to reduce the length of time customers must wait to check out.Which data structure would be most appropriate to simulate the waiting customers?
A) map
B) stack
C) linked list
D) queue
Correct Answer:

Verified
Correct Answer:
Verified
Q27: Assume that you have declared a queue
Q28: Suppose you push integer elements 1,2,3,4 onto
Q29: Assume that you have declared a stack
Q30: A list is a collection that _.<br>A)does
Q31: Which of the following statements about a
Q33: A collection without an intrinsic order is
Q34: Which of the following statements about manipulating
Q35: Assuming that names is a Queue of
Q36: Assume that you have declared a set
Q37: An Undo feature in a word processor