Microsoft
MB6-890 · Question #51
MB6-890 Question #51: Real Exam Question with Answer & Explanation
Sign in or unlock MB6-890 to reveal the answer and full explanation for question #51. The question stem and answer options stay visible for context.
Question
What is the return value of the following method, for an initial value of x = 5? static int sampleSwitch(int x) { ; switch (x) { case (1): x = 5; case (5): x = x + 5; case (10): x = x + 10; break; case (20): x = x + 20; break; default: x = 5; } info(strfmt("Return value is %1", x)); return x; }
Options
- A5
- B10
- C20
- D25
Unlock MB6-890 to see the answer
You've previewed enough free MB6-890 questions. Unlock MB6-890 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.