MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
In Queue we can not insert an element in between the elements that are already inserted but we can delete it.
A
True
B
False
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -Dequeue (double-ended queues) are the refined queues in which elements can be added or removed at either end but not in the middle.

Detailed explanation-2: -Insertion and deletion in queues takes place from the opposite ends of the list. The insertion takes place at the rear of the list and the deletion takes place from the front of the list. Insert operation is called push operation. Insert operation is called enqueue operation.

Detailed explanation-3: -The operation of adding /inserting elements in the queue is called “enqueue”. The “front” end pointer is the place from where the elements are removed from the queue. The operation to remove/delete elements from the queue is called “dequeue”.

Detailed explanation-4: -The deque stands for Double Ended Queue. Deque is a linear data structure where the insertion and deletion operations are performed from both ends.

There is 1 question to complete.