What will be the sequence of numbers, if the following operations are…

2016

What will be the sequence of numbers, if the following operations are performed on a Stack? push(5), push(7), pop(), push(8), push(6), pop(), pop(), pop()

  1. A.

    5, 8, 6, 7

  2. B.

    7, 6, 5, 8

  3. C.

    6, 7, 8, 5

  4. D.

    7, 6, 8, 5

Attempted by 133 students.

Show answer & explanation

Correct answer: D

image.png

Explore the full course: Btsc Lab Assistant