Professional Documents
Culture Documents
Unit IV 1 Mark: 2 Marks
Unit IV 1 Mark: 2 Marks
1 mark
1) What is an applet?
2) When button is pressed which event is generated?
3) For handling Key events, which Listener interface must be implemented?
4) What is an Event in java?
5) When check box is selected which event is generated?
6) For handling button related event, which Listener interface must be implemented?
7) Which model is used to provide actions to AWT component?
8) What is an adopter class?
9) What is the default layout in applet?
10) Which method is used to output a string in an applet?
11) AWT stands for?
12) Which package contains Applet Class?
13) Write the syntax of paint() method?
14) Which method is used to draw a rectangle in the applet?
15) Which package contains all the classes and methods required for event handling in
java?
16) Which method is used to register a keyboard event listener?
17) What is listener in context to event handling?
18) Which method is used to draw a Line in the applet?
19) Which interface defines the actionPerformed() method?
20) How to change the text font in an applet?
2 Marks:
1) Write the states of an applet?
2) What is an applet? How does applet differ from applications?
3) What are the attributes of applet tag?
4) What are the methods that controls an applets life cycle?
5) What is event delegation model?
6) What is an Event source in java, give some example Event sources?
7) What is an Event Listener in java, name some Event Listeners?
8) What is event adapter class? When we should use an event adapter class?
9) Write the purpose of repaint() method?
10) What are different Layout Managers available in java?
5 marks
1)
2)
3)
4)
5)
10 marks
a)
10)
b)