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 queueAnswer: 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…

  1. A.

    Input-restricted queue

  2. B.

    Output-restricted queue

  3. C.

    Priority queue

  4. 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.

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…