Question: 9. What would be the most appropriate data structure for handling customers in a checkout line at a store? (a) a stack (b) a queue


9. What would be the most appropriate data structure for handling customers in a checkout line at a store? (a) a stack (b) a queue (C) either would be equally fine (d) neither is suitable 10. What is the primary purpose of a hash function? (a) to test the validity of input data (b) to sort keys in an array (c) to choose an index in which to store a key d) to reduce the space needed to store a key
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
