What will be the state of a queue after executing the following operations? push(1), push(2), pop(), push(4), push(5), pop()

What will be the state of a queue after executing the following operations?

push(1), push(2), pop(), push(4), push(5), pop()

  1. a) 2, 5
  2. b) 2, 4
  3. c) 4, 5
  4. d) 1, 4

From the Janata Bank Assistant Network Engineer 2020 – Written exam, question 6 of 68.

More from this paper