1.

Queues serve major role in ______________(a) Simulation of recursion(b) Simulation of arbitrary linked list(c) Simulation of limited resource allocation(d) Simulation of heap sortThe above asked question is from Queue Operations topic in portion Abstract Data Types of Data Structures & Algorithms II have been asked this question during an interview for a job.

Answer»

Correct choice is (c) Simulation of LIMITED RESOURCE allocation

The explanation is: Simulation of recursion uses stack data structure. Simulation of arbitrary linked lists uses linked lists. Simulation of resource allocation uses queue as first entered data needs to be GIVEN first PRIORITY during resource allocation. Simulation of heap SORT uses heap data structure.



Discussion

No Comment Found

Related InterviewSolutions