Java Event Handling Mcqs
Our collections of Multiple choice questions and answers focuses on study of Java Event Handling. These questions are chosen from a collection of most authoritative and best reference books on Java Event Handling. Our aim is to prepare an individual for competitive exams like NTS, GAT, ECAT, University and College entrance exams and various tests and job interviews. One should practice our Mcqs to assimilate Java Event Handling topic comprehensively.
Java Programming Mcqs
- Data Types Variables and Arrays Mcqs
- Exception Handling in Java Mcqs
- Interfaces and Packages Mcqs
- Java Classes and Methods Mcqs
- Java Event Handling Mcqs
- Java Inheritance Mcqs
- Java IO and Applets Mcqs
- java lang and java io Mcqs
- Java Language Fundamentals Mcqs
- Java Operators and Control Statements Mcqs
- java utilities Mcqs
- Miscellaneous Topics in Java Mcqs
- Multithreading in Java Mcqs
- Serialization and Networking Mcqs
- Session Management and JSP and Servlet Mcqs
- String Handling
Computer MCQS
Sciences MCQS
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
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
3.
Which of these methods are used to register a keyboard event listener?
KeyListener()
AddKistener()
AddKeyListener()
EventKeyboardListener()
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
4.
Which of these methods are used to register a mouse motion listener?
AddMouse()
AddMouseListener()
AddMouseMotionListner()
EventMouseMotionListener()
Answer & Solution
No Solution for this Answer..! Report or Discus this 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
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
6.
Event class is defined in which of these libraries?
Java.io
Java.lang
Java.net
Java.util
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
7.
Which of these methods can be used to determine the type of event?
GetID()
GetSource()
GetEvent()
GetEventObject()
8.
Which of these class is super class of all the events?
EventObject
EventClass
ActionEvent
ItemEvent
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
9.
Which of these events will be notified if scroll bar is manipulated?
ActionEvent
ComponentEvent
AdjustmentEvent
WindowEvent
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
11.
Which of these events is generated when a button is pressed?
ActionEvent
KeyEvent
WindowEvent
AdjustmentEvent
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
12.
Which of these methods can be used to obtain the command name for invoking ActionEvent object?
GetCommand()
GetActionCommand()
GetActionEvent()
GetActionEventCommand()
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
13.
Which of these are integer constants defined in ActionEvent class?
ALT_MASK
CTRL_MASK
SHIFT_MASK
All of the mentioned
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
14.
Which of these methods can be used to know which key is pressed?
GetKey()
GetModifier()
GetActionKey()
GetActionEvent()
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
15.
Which of these events is generated by scroll bar?
ActionEvent
KeyEvent
WindowEvent
AdjustmentEvent
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
16.
Which of these methods can be used to determine the type of adjustment event?
GetType()
GetEventType()
GetAdjustmentType()
GetEventObjectType()
Answer & Solution
No Solution for this Answer..! Report or Discus this Question