Solved

If You Want to Draw a Red Circle Inside of a Green

Question 4

Multiple Choice

If you want to draw a red circle inside of a green square in an applet where the paint method is passed a Graphics object called page, which of the following sets of commands might you use?


A) page.setColor(Color.green) ; page.fillRect(50, 50, 100, 100) ;
Page.setColor(Color.red) ;
Page.fillOval(60, 60, 80, 80) ;
B) page.setColor(Color.red) ; page.fillOval(60, 60, 80, 80) ;
Page.setColor(Color.green) ;
Page.fillRect(50, 50, 100, 100) ;
C) page.setColor(Color.green) ; page.fillRect(60, 60, 80, 80) ;
Page.setColor(Color.red) ;
Page.fillOval(50, 50, 100, 100) ;
D) page.setColor(Color.red) ; page.fillOval(50, 50, 100, 100) ;
Page.setColor(Color.green) ;
Page.fillRect(60, 60, 80, 80) ;
E) any of the above would accomplish this

Correct Answer:

verifed

Verified

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

Related Questions