Solved

Consider the Following Paint Method and Answer the Questions Below

Question 50

Multiple Choice

Consider the following paint method and answer the questions below:
public void paint(Graphics page)
{
page.setColor(Color.blue) ;
page.fillRect(50, 50, 100, 100) ;
page.setColor(Color.white) ;
page.drawLine(50, 50, 150, 150) ;
page.drawLine(50, 150, 150, 50) ;
page.setColor(Color.black) ;
page.drawString("A nice box", 50, 170) ;
}
-The figure drawn in this applet is


A) a blue square
B) a blue square with two white lines drawn horizontally through it
C) a blue square with two white lines drawn diagonally through it
D) a blue square with two white lines drawn vertically through it
E) a white square with two blue lines drawn vertically through it

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions