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:

Verified
Correct Answer:
Verified
Q13: Given four int values, x1, x2, y1,
Q35: Provide an example of how you might
Q45: What will be the result of the
Q46: Use the following class definition to answer
Q48: If x is an int and y
Q49: If you want to output a double
Q51: Many Java drawing shapes are specified using
Q52: Given the following assignment statement, which of
Q54: Use the following class definition to answer
Q55: Use the following class definition to answer