nerdexam
Microsoft

MB6-890 · Question #95

You need to determine the output of the following code; int i; int j = 0; for(i =0; i <= 10; i=i+2) { if (i mod 2 == 0) { Question No : 51 - (Topic 2) Question No : 52 - (Topic 2) j = j + 1; } if (i…

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

Question

You need to determine the output of the following code; int i; int j = 0; for(i =0; i <= 10; i=i+2) { if (i mod 2 == 0) { Question No : 51 - (Topic 2) Question No : 52 - (Topic 2) j = j + 1; } if (i > 4) { break; } } info (strFmt("%1” , j)); What is the output in the Infolog after running the code?

Options

  • A3
  • B4
  • C5
  • D10

How the community answered

(39 responses)
  • A
    3% (1)
  • B
    8% (3)
  • C
    77% (30)
  • D
    13% (5)

Community Discussion

No community discussion yet for this question.

Full MB6-890 Practice