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
Q7: If a switch statement is written that
Q8: The following nested loop structure will execute
Q9: Consider the following paint method to answer
Q10: Consider the following paint method to answer
Q11: Each case in a switch statement must
Q13: How many times will the following loop
Q14: Given that s is a String, what
Q15: Control in a switch statement jumps to
Q16: You might choose to use a switch
Q17: Given the following code, where x =
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