AJP Assignment No-3
AJP Assignment No-3
6. FocusEvent is subclass of …
a) ContainerEvent
b) ComponentEvent
c) ItemEvent
d) KeyEvent
10. Till now, two models have been introduced in Java for
a. Receiving and Processing events
b. Deleting and Processing events
c. Receiving and Deleting events
d. Modifying and Receving events
11. An event is generated whe the internal state of the event source is
a. Not changed
b. Changed
c. Either changed or not
d. None of these
12. EventObject class belongs to:
a. java.util
b. java.awt
c. java.lang
d. java.sql
13. The interface handles list events:
a. ContainerListener
b. FocusListener
c. ActionListener
d. ItemListener
14. The interface handles choice events:
a. ContainerListener
b. ItemListener
c. ActionListener
d. WindowListener
15. The interface is used to handle checkbox events:
a. ContainerListener
b. ItemListener
c. ActionListener
d. WindowListener
16. The interface is used to handle button events:
a. ContainerListener
b. ItemListener
c. ActionListener
d. WindowListener
17. A push button is an active control that has a appearance
a. One dimensional
b. Two dimensional
c. Three dimensional
d. None of these
18. ItemListener is defined by the method:
a. itemChangedState()
b. itemStateChanged()
c. itemChanged()
d. itemState()
19. 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
20. A label is a simple control which is used to display_ on the window:
a. Text(non-editable)
b. Text(editable)
c. Both a & b
d. None of these
21. The Delegation Event Model defines a approach to handle events:
a. Logical
b. Physical
c. Both a & b
d. None of these
22. The Delegation Event Model is based on the concept of
a. Source
b. Listener
c. Both a & b
d. None of these
23. 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
24. Applet is a small program written in the Java programming language that
performs:
a. A specific task
b. May or may not be a part of a larger program
c. Both a & b
d. None of these
30. 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
38. Which of these methods can be used to determine the type of event ?
(a) getSoureeO (b) getEventO
(c) getIDO (d) getEventObjeetO
47. method can be used to know the degree of adjustment made by the user.
(a) getValue() (b) getAdjustmentType()
(c) getAdjustmentValue() (d) getAdjustmentAmount()
50. When the component is added or removed ? Which of these events is generated
?
(a) ComponentEvent (b) ContainerEvent
c) FocusEvent (d) InputEvent
51. method can be used to obtain the reference to the container that
generated a ContainerEvent.
(a) getContainerO (b) getContainerCommandO
(c) getActionEventO (d) getContainerEventO
52. Which is the constant used for always providing the vertical scrollbar
(a) VERTICAL_SCROLLBAR_ALWAYS
(b)VERTICAL _SCROLLBAR_AS_NEEDED
58. Which of the following method can be used to obtain the coordinates of a mouse?
(a) getPoint() (b) getCoordinates()
(c) getMouseXY() (d) getMouseCordinates()