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)- A17% (6)
- B69% (25)
- C3% (1)
- D11% (4)
Community Discussion
No community discussion yet for this question.