please answer with A B C or D 1. (TCO 4) What can you say about the following Ja
ID: 3551333 • Letter: P
Question
please answer with A B C or D
1. (TCO 4) What can you say about the following Java class definition? 4) public class MyApp implements ActionListener, ltemListener Points 6 MyApp is providing the actionPerformed method a the itemStateChanged method This class is illegal because it is implementing multiple interfaces This class will need to use an object of some other class which provides actionPerformed and itemStateChanged None of the above 2. (TCO 5) Which of the following draws an oval whose center position is (400, 400) and whose width is 200 and height is 100? me g is an object of the Graphics class. (Points 6) g.drawElipse(300, 350, 200, 100 g.drawOval (400, 400, 100, 50) g.drawElipse(400, 400, 200, 100 g.drawOval(300, 350, 200, 100) 3. TCO 5) Which method of the Graphics class in Java is used to draw a circle filled with a colo Points 6) the drawCircle method the fillCircle method the drawOval method the fillOval method 4. (TCO 5) Which of the following sets the Font to SanSerif, size 14, and bold? me g is an object of the Graphics class. (Points 60 g-set Font SanSerif BOLD, 14) g set Font(SanSerif, 14, BOLD), g-drawString(Here is my string SanSerif, BOLD, 14) g set Font( new Font SanSerif BOLD, 14. 5. (TCO 5) WI interfaces would need to be implemented to get all events associated with mouse motion and mouse buttons? Points 60 hat MouseEvent and MouseMotionEvent MouseListener and MouseMotionListener MouseMotionListener and MouseButtonListener MouseListener and MouseButtonListener 6. (TCC 5) A class that extends the KeyAdapter class would likely (Points: 6) override one or two of the KeyListener methods provided by KeyAdapter also implement the KeyListener interface to handle KeyEvents would let the KeyAdapter handle all KeyEvents. would not be interested in dealing with events from the keyboardExplanation / Answer
1. a
2. c
3. b
4. a
5. b
6. a
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.