Title | |
---|---|
Which of these packages contains all the classes and methods required for even handling in JavaWhich of these packages contains all the classes and methods required for even handling in Java
The answer is:
D. java.awt.event
|
|
What is an event in delegation event model used by Java programming languageWhat is an event in delegation event model used by Java programming language?
The answer is:
A. An event is an object that describes a state change in a source
|
|
Which of these methods are used to register a keyboard event listenerWhich of these methods are used to register a keyboard event listener?
The answer is:
C. addKeyListener()
|
|
Which of these methods are used to register a mouse motion listenerWhich of these methods are used to register a mouse motion listener?
The answer is:
C. addMouseMotionListner()
|
|
What is a listener in context to event handlingWhat is a listener in context to event handling?
The answer is:
B. A listener is a object that is notified when an event occurs
|
|
Event class is defined in which of these librariesEvent class is defined in which of these libraries?
The answer is:
D. java.util
|
|
Which of these methods can be used to determine the type of eventWhich of these methods can be used to determine the type of event?
The answer is:
A. getID()
|
|
Which of these class is super class of all the eventsWhich of these class is super class of all the events?
The answer is:
A. EventObject
|
|
Which of these events will be notified if scroll bar is manipulatedWhich of these events will be notified if scroll bar is manipulated?
The answer is:
C. AdjustmentEvent
|
|
Which of these events will be generated if we close an applet’s windowWhich of these events will be generated if we close an applet’s window
The answer is:
D. WindowEvent
|
|
Which of these events is generated when a button is pressedWhich of these events is generated when a button is pressed?
The answer is:
A. ActionEvent
|
|
Which of these methods can be used to obtain the command name for invoking ActionEvent objectWhich of these methods can be used to obtain the command name for invoking ActionEvent object?
The answer is:
B. getActionCommand()
|
|
Which of these are integer constants defined in ActionEvent classWhich of these are integer constants defined in ActionEvent class?
The answer is:
D. All of the mentioned
|
|
Which of these methods can be used to know which key is pressedWhich of these methods can be used to know which key is pressed?
The answer is:
B. getModifier()
|
|
Which of these events is generated by scroll barWhich of these events is generated by scroll bar?
The answer is:
D. AdjustmentEvent
|
|
Which of these methods can be used to determine the type of adjustment eventWhich of these methods can be used to determine the type of adjustment event?
The answer is:
C. getAdjustmentType()
|
|
Which of these methods can be used to know the degree of adjustment made by the userWhich of these methods can be used to know the degree of adjustment made by the user?
The answer is:
A. getValue()
|
|
Which of these constant value will change when the button at the end of scroll bar was clicked to increase its valueWhich of these constant value will change when the button at the end of scroll bar was clicked to increase its value?
The answer is:
D. UNIT_INCREMENT
|
|
Which of these events is generated when the size of an event is changedWhich of these events is generated when the size of an event is changed?
The answer is:
A. ComponentEvent
|
|
Which of these events is generated when the component is added or removedWhich of these events is generated when the component is added or removed?
The answer is:
B. ContainerEvent
|
MCQs
Views
Best Answers
Points