What does the following code draw?g.setColor(Color.black);g.drawLine(10, 10, 10, 50);g.setColor(Color.RED);g.drawRect(100, 100, 150, 150);

A) A red vertical line that is 40 pixels long and a red square with sides of 150 pixels
B) A black vertical line that is 40 pixels long and a red square with sides of 150 pixels
C) A black vertical line that is 50 pixels long and a red square with sides of 150 pixels
D) A red vertical line that is 50 pixels long and a red square with sides of 150 pixels
E) A black vertical line that is 40 pixels long and a red square with sides of 100 pixel

Showing Answers 1 - 1 of 1 Answers

Atul

  • Mar 28th, 2006
 

Ans b

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions