Question 156Asked in DSSSB TGT Computer Science, 25 Jun 2023, Shift 1 (8:30 AM)

The operations of a ______ require that the first element that is inserted is the first one to be removed?

  1. Aunion
  2. Bgraph
  3. Cstack
  4. Dqueue
Show answerHide answer

Correct answer: (D) queue

Explanation

A queue is FIFO (first in, first out), so the first element inserted is the first removed. A stack is LIFO.

From DSSSB TGT Computer Science PYQ, 25 Jun 2023, Shift 1 (8:30 AM)

This is question 156 of DSSSB TGT Computer Science PYQ, 25 Jun 2023, Shift 1 (8:30 AM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.