1.

A data structure in which elements can be inserted or deleted at/from both ends but not in the middle is?(a) Queue(b) Circular queue(c) Dequeue(d) Priority queueAsked question is from Queue Operations in portion Abstract Data Types of Data Structures & Algorithms IThe question was asked in examination.

Answer»

Correct answer is (C) Dequeue

The best I can EXPLAIN: In dequeuer, we can INSERT or delete elements from both the ends. In queue, we will follow first in first out principle for insertion and deletion of elements. Element with LEAST priority will be DELETED in a priority queue.



Discussion

No Comment Found

Related InterviewSolutions