Tutorial 3
Tutorial 3
6. An event is generated whe the internal state of the event source is________ 0
a. Not changed
b. Changed
c. Either changed or not
d. None of these
12. _____________ is a superclass of TextField and TextArea classes that is used to create
single-line or multiline textfields respectively:
a. TextBox
b. CheckBox
c. TextComponent
d. Choice
15. A source generates an event and sends it to ___________ listeners that can handle the event:
a. One
b. Two
c. One or more
d. None of these
16. _______ generates action events when an item is double-clicked, generate action events
when an item is selected or deselected.
a. List
b. Check box
c. Menu item
d. Text box Label
19. ……….package contains all the classes and methods required for Event handling in java.
(a) java.applet
(b) java.awt
(c)java.event
(d)java.awt.event
(d)WindowEvent
23. Which of these are integer constants defined in ActionEvent class?
(a) ALT_MASK
(b) CTRL_MASK
(c) SHIFT_MASK (d) All of the mentioned
27. Which method from the following methods will respond when you click any button by
mouse?
(a) mouseClicked()
(b) mouseEntered()
(c) mousePressed()
(d) All of the mentioned