II. Each Question Carries 2 Mark.
1) To make a calculator we use the following layouts
a) BorderLayout and GridLayout b) BorderLayout and FlowLayout
c) BorderLayout and CardLayout d) None
2) To disable the text alteration in the Text Field.
a) setEditable(false) b) setEditable(true) c) set Editable() d) None
3) Which interface is used to position each of the components within the container
a) LayoutManager b) PositionManager c) Driver Manager d. None
4) Applet is a java program that can be embedded in a web page. Java applications are run by using a java interpreter. Applet are run on any ____________.
a) compiler b) interpreter c) browser d) None
5) Applets can not read and write files on the user system. Then can not load or run Any programs stored on the user system.
a) False b) True
6) Which is not related to the applet tag
a) Code b) vspace c) Alt d) ctrl
7) Init( ) method , destroy method executes only ______time for each applet
a) 1 b) 2 c) 3 d) None
8) Destruction is done using destroy ( ) method. It performs clean up process when the browser exits. An applet is started after ___________
a) start () b) init( ) c) stop d) None
9) The values are passed to applets by using the attribute PARAM in the applet tag. Font class is required 3 arguments in its constructor.
a) False b) True
10) _____________ method to assign layout manager to the applet.
List( ) allows creating empty scrolling list enabling only one item to be selected at a time.
a) getLayout b) setLayou c) both d) None
II. Answer – 2 Mark.
1. A 2. B 3. A 4. C 5. B 6. D 7. A
8. B 9. B 10.B