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
Q20: Consider having three String variables a, b,
Q21: Assume that x is a double that
Q23: Which of the following would return the
Q23: Which library package would you import to
Q24: For the following questions, refer to the
Q26: For the following questions, refer to the
Q27: Consider the double value likelihood = 0.013885.
Q28: In order to create a constant, you
Q29: Consider the following paint method and answer
Q30: You specify the shape of an oval
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