Solved

Consider the Following Paint Method to Answer the Questions Below

Question 3

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:

verifed

Verified

Related Questions