1. Which of these events is generated when computer gains or loses input focus?
Correct Answer is : FocusEvent
2. FocusEvent is subclass of which of these classes?
Correct Answer is : ComponentEvent
3. Which of these methods can be used to know the type of focus change?
Correct Answer is : isTemporary()
4. Which of these is superclass of ContainerEvent class?
Correct Answer is : ComponentEvent
5. Which of these events is generated when a button is pressed?
Correct Answer is : ActionEvent
6. Which of these methods can be used to obtain the command name for invoking ActionEvent object?
Correct Answer is : getActionCommand()
7. Which of these are integer constants defined in ActionEvent class?
Correct Answer is : All of the mentioned
8. Which of these methods can be used to know which key is pressed?
Correct Answer is : getModifier()
9. Which of these events is generated by scroll bar?
Correct Answer is : AdjustmentEvent
10. Which of these methods can be used to determine the type of adjustment event?
Correct Answer is : getAdjustmentType()
11. Which of these methods can be used to know the degree of adjustment made by the user?
Correct Answer is : getValue()
12. Which of these constant value will change when the button at the end of scroll bar was clicked to increase its value?
Correct Answer is : UNIT_INCREMENT
13. Which of these packages contains all the classes and methods required for even handling in Java?
Correct Answer is : java.awt.event
14. What is an event in delegation event model used by Java programming language?
Correct Answer is : An event is an object that describes a state change in a source
15. Which of these methods are used to register a keyboard event listener?
Correct Answer is : addKeyListener()
16. Which of these methods are used to register a mouse motion listener?
Correct Answer is : addMouseMotionListner()
17. What is a listener in context to event handling?
Correct Answer is : A listener is a object that is notified when an event occurs
18. Event class is defined in which of these libraries?
Correct Answer is : java.util
19. Which of these methods can be used to determine the type of event?
Correct Answer is : getID()
20. Which of these class is super class of all the events?
Correct Answer is : EventObject