Multiple Choice
int counter = 0; while (counter < 100)
{
Console.WriteLine(counter) ;
Counter++;
}
Looking above, if the loop body was changed from counter++; to counter += 5;, how many times would the loop body be executed?
A) 19
B) 20
C) 99
D) 100
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q21: int counter = 0; while (counter <
Q22: The only posttest loop structure available with
Q23: The loop control structure used to move
Q24: What is a requirement of the sentinel-controlled
Q25: Inside the for statement, when you place
Q27: for (int i = 0; i <
Q28: The most appropriate sentinel value that might
Q29: Instead of requiring that a dummy value
Q30: When you know the number of times
Q31: An off-by-one error is a common problem