Given Graphics object g, what method call is used to draw a line from X = 10, Y = 20 to X = 80, Y = 40?

A. g.drawLine(10, 80, 20, 40);
B. g.drawLine(10, 20, 80, 40);
C. g.drawLine(10, 20, 40, 80);
D. g.drawLine((10, 20), (80, 40));

Answer: B

Computer Science & Information Technology

You might also like to view...

You can use the ________ to quickly copy formatting from one section of text to another

A) Ribbon B) Quick Access Toolbar C) Format Painter D) Clipboard

Computer Science & Information Technology

Which of the following would be the correct network classification for large network unicast addresses?

A) Class A B) Class B C) Class C D) Class D E) Class E

Computer Science & Information Technology