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) ;
}
-The size of each rectangle (bar)
A) increases in height while staying the same width
B) increases in width while staying the same height
C) increases in both width and height
D) stays the same size
E) decreases in height while staying the same width
Correct Answer:

Verified
Correct Answer:
Verified
Q1: Each case in a switch statement must
Q2: Rewrite the following nested if-else statement as
Q4: Write a paint method to draw out
Q6: Given the following switch statement where x
Q7: How many times will the following loop
Q8: It is possible to convert any type
Q9: Consider the following paint method to answer
Q10: A continue statement<br>A) may be used within
Q11: Given that s is a String, what
Q16: In Java, it is possible to create