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) ) ;
Correct Answer:
Verified
Q5: You must import the package javax.swing in
Q7: Applets use the init method in place
Q23: The graphic in the accompanying figure is
Q24: Given Graphics object graph, which statement can
Q26: How many inches is 12-point font?
A) 1/6
B)
Q27: What class must be extended when you
Q28: Which of the following sets the background
Q30: A JComboBox generates an ItemEvent.
Q34: Clicking on a JCheckBox generates an item
Q36: JRadioButtons are useful when you want to
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents