How many times is the body of the loop below executed? int counter = 1;
While ( counter > 20 )
{
// body of loop
Counter = counter - 1;
} // end while
A) 19.
B) 20.
C) 21.
D) 0.
Correct Answer:
Verified
Q24: Java is considered a strongly typed language
Q25: Which of the following code segments does
Q28: Which of the following is not a
Q31: Local variables must be _.
A) initialized when
Q32: Which statement is true?
A) Dividing two integers
Q32: What does the expression x %= 10
Q35: Which statement is true?
A)A while statement cannot
Q36: Which of the following is not a
Q38: Which of the following operators associates from
Q39: Where can local variables declared within a
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents