1.

If the elements “A”, “B”, “C” and “D” are placed in a queue and are deleted one at a time, in what order will they be removed?(a) ABCD(b) DCBA(c) DCAB(d) ABDCMy question comes from Queue Operations topic in portion Abstract Data Types of Data Structures & Algorithms II got this question in homework.

Answer»

Right answer is (a) ABCD

The BEST I can explain: Queue FOLLOWS FIFO approach. i.e. First in First Out Approach. So, the order of removal elements are ABCD.



Discussion

No Comment Found

Related InterviewSolutions