13
35) 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