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
-
Interview Candidate
- Dec 10th, 2005
- 1
- 5489
Showing Answers 1 - 1 of 1 Answers
Related Answered Questions
Related Open Questions
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);
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
Related Answered Questions
Related Open Questions