Friday, January 15, 2010



III. Each Question Carries 4 Mark.

1) Match the following
A. Components i. How the components are arranged ?
B. Containers ii. Component that contains other containers
C. Layout Managers iii. Buttons, Checkbox etc
a) A-iii, B-ii, C-I b. A-iii, B-i, C-ii c ) A-ii, B-i, C-ii d. A-ii, B-i, C-iii

2) Match The following
A. getText() i. Returns the number of items in the list
B. setEditable (boolean) ii. Returns the text of the item at index
C. getItem(int ) iii. Returns the text in the field
D. getItemCount() iv. Decides whether the field should be editable/not.

a) A-iii, B-iv, C-ii, D-I b) A-iii, B-iv, C-ii, D-I c) A-iii, B-iv, C-ii, D-I d) A-iii, B-iv, C-ii, D-I

3) i) The ALT tag short text message
ii) Layout out 5 types
iii)The programmer could not control the way the components were added to the window.
a) Only i b) Only i, ii c) All d) None

4) The CODE tag in an specify
a) Name of the .class file. b) Name of the .java file. c) Name of the browser d) None

5) i) All applets are subclasses of the Applet in the java.applet package
ii) All applets must be public and it does not main
iii) An applet display information on the screen by using paint( ) methods
a) Only i b) Only i, ii c) all d) None

6 )
i) start ( )
ii) init ( )
iii) destroy
iv) stop ( )
make it in order applet life cycle
a) i, iii, ii, iv b) ii, i, iv, iii c) i, ii, iii, iv d) None

7). Find out which is the correct
i)
ii) < param name=” acit” >
iii).
a) Only i b) Only i, ii c) All d) None

8) Find out true statement in font class constructor
First arguments describes font name
i) Second arguments describes font style
ii) Third arguments describes font size
a) Only i b) Only i, ii c) All d) None

9) i) Grid layout arranges components in the form of grid consisting row and column
ii) The border layout divided into 5 sections
iii) In a single applet window we can have multiple containers.
a) Only i b) Only i, ii c) All d) None

10) i) CardLayout is a group of containers or components that are displayed at time
ii) GridBag is extension of GridLayout manager
iii) The frame class provides a window with title bar, minimize, close boxes.
a) Only i b) Only i, ii c) All d) None

III. Answer – 4 Mark.


1.A 2. A 3. C 4. A 5. C 6. B 7. C
8.C 9. C 10.C