nerdexam
Microsoft

98-361 · Question #335

You are developing a C# program. You write the following code: int i = 6; do { if (i == 3) break; Console.WriteLine("The value of i = {0}", i); i++; } while (i <= 5); How many times will the control…

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

Question

You are developing a C# program. You write the following code:

int i = 6; do { if (i == 3) break; Console.WriteLine("The value of i = {0}", i); i++; } while (i <= 5); How many times will the control enter the while loop?

Options

  • A0
  • B1
  • C2
  • D3

How the community answered

(36 responses)
  • A
    17% (6)
  • B
    69% (25)
  • C
    3% (1)
  • D
    11% (4)

Community Discussion

No community discussion yet for this question.

Full 98-361 Practice