Which of the following data structure allows you to insert the elements from…
Which of the following data structure allows you to insert the elements from both the ends while deletion from only one end?
Answer: B. Output-restricted queue — Answer: b Explanation: The answer is b. The output-restricted queue is one of the types of the Deque data structure in which insertion is allowed from both…
- A.
Input-restricted queue
- B.
Output-restricted queue
- C.
Priority queue
- D.
None of the above
Attempted by 336 students.
Show answer & explanation
Correct answer: B
Answer: b
Explanation: The answer is b. The output-restricted queue is one of the types of the Deque data structure in which insertion is allowed from both the ends but the deletion is allowed from only one end.
Loading lesson…