gs gs128 Java Event Handling - Event Listeners Interfaces in Java - Quiz No.1
gs gs128 Java Quiz
This quiz belongs to book/course code gs gs128 Java of gs organization. We have 136 quizzes available related to the book/course Java. This quiz has a total of 9 multiple choice questions (MCQs) to prepare and belongs to topic Java Event Handling. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to prepare online MCQs and quizzes.
NVAEducation also facilitates users to contribute in online competitions with other students to make a challenging situation to learn in a creative way. You can create one to one, and group competition on an topic of a book/course code. Also on NVAEducation you can get certifications by passing the online quiz test.
Question 1: Which of these packages contains all the event handling interfaces?
java.lang
java.awt
java.awt.event
java.event
Question 2: Which of these interfaces handles the event when a component is added to a container?
ComponentListener
ContainerListener
FocusListener
InputListener
Question 3: Which of these interfaces define a method actionPerformed()?
ComponentListener
ContainerListener
ActionListener
InputListener
Question 4: Which of these interfaces define four methods?
ComponentListener
ContainerListener
ActionListener
InputListener
Question 5: Which of these interfaces define a method itemStateChanged()?
ComponentListener
ContainerListener
ActionListener
ItemListener
Question 6: Which of these methods will respond when you click any button by mouse?
mouseClicked()
mouseEntered()
mousePressed()
all of the mentioned
Question 7: Which of these methods will be invoked if a character is entered?
keyPressed()
keyReleased()
keyTyped()
keyEntered()
Question 8: Which of these methods is defined in MouseMotionAdapter class?
mouseDragged()
mousePressed()
mouseReleased()
mouseClicked()
Question 9: Which of these is a superclass of all Adapter classes?
Applet
ComponentEvent
Event
InputEvent