Multiple Choice
How many times is the body of the loop below executed?
int counter = 1;
While (counter > 20) {
// body of loop
Counter = counter - 1;
}
A) 19.
B) 20.
C) 21.
D) 0.
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q29: Which of the following is not a
Q30: In an expression containing values of the
Q31: Which of the following is not a
Q32: What is output by the following Java
Q33: Which of the following is not a
Q34: Java is considered a strongly typed language
Q35: Which of the following is a double-selection
Q37: Local variables must be _.<br>A) initialized when
Q38: The empty statement is denoted by what
Q39: Sentinel-controlled iteration is also known as:<br>A) Definite