gs gs128 Java Event Handling - Java Event Handling Basics - 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 10 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 classes and methods required for even handling in Java?
java.applet
java.awt
java.event
java.awt.event
Question 2: What is an event in delegation event model used by Java programming language?
An event is an object that describes a state change in a source
An event is an object that describes a state change in processing
An event is an object that describes any change by the user and system
An event is a class used for defining object, to create events
Question 3: Which of these methods are used to register a keyboard event listener?
KeyListener()
addKistener()
addKeyListener()
eventKeyboardListener()
Question 4: Which of these methods are used to register a mouse motion listener?
addMouse()
addMouseListener()
addMouseMotionListner()
eventMouseMotionListener()
Question 5: What is a listener in context to event handling?
A listener is a variable that is notified when an event occurs
A listener is a object that is notified when an event occurs
A listener is a method that is notified when an event occurs
None of the mentioned
Question 6: Event class is defined in which of these libraries?
java.io
java.lang
java.net
java.awt.event
Question 7: Which of these methods can be used to determine the type of event?
getID()
getSource()
getEvent()
getEventObject()
Question 8: Which of these class is super class of all the events?
EventObject
EventClass
ActionEvent
ItemEvent
Question 9: Which of these events will be notified if scroll bar is manipulated?
ActionEvent
ComponentEvent
AdjustmentEvent
WindowEvent
Question 10: Which of these events will be generated if we close an applet’s window?
ActionEvent
ComponentEvent
AdjustmentEvent
WindowEvent