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

PYQ UP Police Computer Operator Grade A 2016

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 619 students.

Sign up free to check your answer

Sign up free

Explore the full course: Up Police Computer Operator

Loading lesson…