Examlex

Solved

Consider the Following Paint Method to Answer the Questions Below

question 9

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) ;
}
-This paint method will draw several bars (sort of like a bar graph) . How many bars will be displayed?


Definitions:

Related Questions