nerdexam
Microsoft

MB6-890 · Question #60

You need to determine the output of the following: int i - 25; str output = "A"; if (i > 10) { if (i < 20) { output = "B"; } else { output - "C"; } info(output); } if (i > 20) { if (i > 50) { Output…

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

Question

You need to determine the output of the following:

int i - 25; str output = "A"; if (i > 10) { if (i < 20) { output = "B"; } else { output - "C"; } info(output); } if (i > 20) { if (i > 50) { Output = “D” ; } Else output = "E"; } } info (output) ; What is the output in the Infolog after running the code?

Options

  • AA
  • BB
  • CC
  • DB

How the community answered

(57 responses)
  • A
    4% (2)
  • B
    72% (41)
  • C
    7% (4)
  • D
    18% (10)

Community Discussion

No community discussion yet for this question.

Full MB6-890 Practice