nerdexam
Microsoft

98-361 · Question #16

You have a stack that contains integer values. The values are pushed onto the stack in the following order: 2,4,6,8. The following sequence of operations is executed: Pop Push 3 Pop Push 4 Push 6…

The correct answer is B. 3. See the full explanation below for the reasoning.

Question

You have a stack that contains integer values. The values are pushed onto the stack in the following order: 2,4,6,8. The following sequence of operations is executed:

Pop Push 3 Pop Push 4 Push 6 Push 7 Pop Pop Pop What is the value of the top element after these operations are executed?

Options

  • A2
  • B3
  • C6
  • D7

How the community answered

(54 responses)
  • A
    6% (3)
  • B
    72% (39)
  • C
    4% (2)
  • D
    19% (10)

Community Discussion

No community discussion yet for this question.

Full 98-361 Practice