Microsoft
98-361 · Question #392
You are developing an application that uses the Stack data structure. You write the following code: Stack first = new Stack(); first.Push(50); first.Push(45); first.Pop(); first.Push(11)…
Sign in or unlock 98-361 to reveal the answer and full explanation for question #392. The question stem and answer options stay visible for context.
Question
You are developing an application that uses the Stack data structure. You write the following code:
Stack first = new Stack(); first.Push(50); first.Push(45); first.Pop(); first.Push(11); first.Pop(); first.Push(7); What are the contents of the stack, from top to bottom, after these statements are executed?
Options
- A7, 11, 50
- B7, 45
- C7, 50
- D7, 11, 45
Unlock 98-361 to see the answer
You've previewed enough free 98-361 questions. Unlock 98-361 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.