nerdexam
Microsoft

98-361 · Question #334

You are developing a C# program. You write the following code: 01: int count = 0; 02: while (count < 5) 03: { 04: if (count == 3) 05: break; 06: count++; 07: } How many times will the control enter…

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

Question

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

01: int count = 0; 02: while (count < 5) 03: { 04: if (count == 3) 05: break; 06: count++; 07: } How many times will the control enter the while loop?

Options

  • A5
  • B4
  • C3
  • D2

How the community answered

(38 responses)
  • A
    16% (6)
  • B
    74% (28)
  • C
    8% (3)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 98-361 Practice