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...

By using Word themes while developing a webpage, you can more easily coordinate colors and fonts

Indicate whether the statement is true or false

Computer Science & Information Technology

If a value is in the third row and fourth column, the cell reference would be R3C4

Indicate whether the statement is true or false.

Computer Science & Information Technology

In port security, what will occur when the MAC address count is at the maximum setting and a new frame arrives from a source address that is NOT in the table?

A) The port will add the new MAC address in place of the oldest in the list. B) The port will shut down the interface. C) The port will record a system log for the violation. D) The password for the port is all that matters for traffic to pass.

Computer Science & Information Technology

A _____ [ lower | higher ] CL rating is a faster memory module

Fill in the blank(s) with correct word

Computer Science & Information Technology