If the following operations are done on a stack, then what will be the…

UP Police Computer Operator Grade A · 2016 · Computer Operator Grade A · 19 May 2016 Shift 1 · Computer Science

If the following operations are done on a stack, then what will be the sequence of institutions?

push(4). push(9). pop (). push (5) . pop (). pop ()

  1. A.

    9, 5, 4

  2. B.

    4, 9, 5

  3. C.

    4, 5, 9

  4. D.

    5, 9, 4

Attempted by 524 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…