Tuesday, January 26, 2010

Unit-6
I. Each Question Carries 1 Mark.
1) What are the java applications that run as part of a web document?
a) Applet b) Servlet c) Script d) None

2) What application is used to test an applet
a) applet viewer b) applet runner c) applet tester d) None

3) Applets do not need ______ method
a. Main b) Init c) start d) destroy

4) System.out.println is handled by ___________ method in applets
a) Draw Sring b) Draw Test c) Print Test d) None

5) Font class is a class presents in ______package
a) applet b) awt c) long d) util

6) An applet is a sub class of ____
a) window b) panel c) Frame d) component

7) Which method is called first during the runtime of your applet
a) init b) start c) paint d) run

8) The applet resumes execution at ________ method
a) Start b) init c) paint d) run

9) Which method causes the awt run time system to execute a call to your applets update() method
a) repaint() b) paint() c) update() d) None

10) Which method is used to display the message in status bar?
a) show Status() b) display Status() c) direct Status() d) None

11) To retrieve the parameter we use the following method
a) get Parameter() b) get String() c) get Value() d) None

12) To add a selection to the list, we use the following methods
a) addItem() b) add() c) both d) None

13) A multiple line editor.
a) TextArea b) TextField c) TextBox d) None

14) The default layout manager in Applet is
a) FlowLayout b) BorderLayout c) GridLayout d) CardLayout

15) The default layout manager in a Frame is
a) BorderLayout b) FlowLayout c) GridLayout d) CardLayout

16) Which layout is used to shuffle any panel on the top at a given time?
a) CardLayout b) Flow Layout c) GridLayout d) Border Layout


I. Answer – 1 Mark.


1.A 2. A 3. A 4. A 5. A 6. A 7. A
8.D 9. C 10. A 11. A 12. A 13. A 14. A
15. A 16. A