MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of the following data structure allows you to delete the elements from both the ends while insertion from only one end?
A
Input-restricted queue
B
Output-restricted queue
C
Priority queue
D
Circular Queue
Explanation: 

Detailed explanation-1: -Explanation: The answer is Queue.

Detailed explanation-2: -Deque is a data structure allowing insertion and deletion from both ends.

Detailed explanation-3: -Stack is a linear data structure in which the insertion and deletion operations are performed at only one end. In a stack, adding and removing of elements are performed at single position which is known as “top".

There is 1 question to complete.