Read the paragraph and answer the question. A stack is a linear data structure…

DSSSB TGT/PGT · 2023 · TGT Computer Science · post code 39/22 · 24 Jun 2023 · Shift 2 · Section B: subject

Read the paragraph and answer the question.

A stack is a linear data structure in which insertion and deletion of elements are done at only one end, known as the top of the stack. A stack follows the last-in-first-out (LIFO) principle.

In the given stack, the elements from top to bottom are: L, M, N, O, P, Q.

After popping/removing three items from the stack, which item will be at the top?

  1. A.

    O

  2. B.

    L

  3. C.

    N

  4. D.

    P

Attempted by 1469 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rssb Senior Computer Instructor

Loading lesson…