Multiple Choice
Consider the following paint method to answer the questions below:
public void paint(Graphics page)
{
int x, y = 200;
page.setColor(Color.blue) ;
for (x = 100; x < 200; x += 20)
page.fillRect(x, y, 10, y-x) ;
}
-Which of the following statements are True about Java loops?
A) all three loop statements are functionally equivalent
B) while loops and do loops are essentially the same; but while loops always execute at least once
C) if you know the number of times that a loop is to be performed, the best loop statement to use is a while loop
D) loops may be replaced by an appropriate combination of if-else and switch statements
E) none of the above
Correct Answer:

Verified
Correct Answer:
Verified
Q10: The following for loop is an infinite
Q18: The following loop is syntactically valid:<br>for(int j
Q25: How many times will the System.out.println(*); statement
Q27: A dialog box is a device which
Q28: If a switch statement is written that
Q28: Describe a situation where you should use
Q30: A switch statement must have a default
Q31: Consider the following paint method to answer
Q31: Given the following tax table information, write
Q34: Rewrite the following if-else statement using a