wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

20UCT412 - CORE VIII: ADVANCED JAVA PROGRAMMING Quiz Event

Total questions: 20

Worksheet time: 14mins

Name
Class
Date
1.

AWT stands for __________.

a)

Applet Windowing Toolkit

b)

Abstract Windowing Toolkit 

c)

Absolute Windowing Toolkit

d)

None of the above

2.

Swing components are _________.

a)

Heavy-weight components

b)

Light-weight components

c)

Window

d)

Container

3.

Swing components are platform _________.

a)

Dependent

b)

Independent

c)

Neither dependent nor independent

d)

Both dependent and independent 

4.

Abstract superclass for Swing buttons are

a)

Component

b)

JComponent  

c)

AbstractButton

d)

none of the above 

5.

The Swing related classes are contained in _______ package.

a)

java.Swing

b)

javax.swing

c)

java.Swings

d)

None of the above

6.

JApplet supports __________

a)

panes

b)

object

c)

code

d)

None of the above

7.

Which class provides many methods for graphics programming?

a)

java.awt

d)

None of the above

8.

The ________ method of container can be used to add a component to a ContentPane.

a)

add()

b)

adds()

c)

label()

d)

None of the above

9.

In Swing , icons are encapsulated  by the _______ class.

a)

ImageIcon

b)

Image

c)

Icon

d)

None of the above

10.

Swing labels are instances of the _________ class.

a)

java.awt

b)

Label

c)

JLabel

d)

None of the above

11.

The Swing textField is encapsulated by the _________ class.

a)

JTextComponent

b)

TextComponent

c)

JtextArea

d)

None of the above

12.

The _______ class provides the functionality of a push button.

a)

JButton

b)

JCheckbox 

c)

JMenuItem

d)

All of these

13.

Which is the container that doesn't contain title bar and MenuBars.

a)

Window

b)

Frame

c)

Panel

d)

Container

14.

By which method you can set or change the text in a Label?

a)

setText()

b)

getText()

c)

Both A & B

d)

None of the above

15.

A _______ is a component that displays rows and columns of data.

a)

List

b)

table

c)

Labels

d)

Checkbox

16.

A _____ object generates events when a node is expanded or collapsed.

a)

Labels

b)

JTree

c)

List

d)

Checkbox                                                                     

17.

What is the name of the Swing class that is used for frames?

a)

Window

b)

Frame

c)

JFrame

d)

SwingFrame

18.

Which of the following package contains servlet classes?

a)

javax.servlet

b)

javax.servlet.http

c)

Both of the above.

d)

None of the above.

19.

Which of the following is the correct order of servlet life cycle phase methods?

a)

init, service, destroy

b)

initialize, service, destroy

c)

init, execute, destroy

d)

init, service, delete

20.

What is javax.servlet.Servlet?

a)

interface

b)

abstract class

c)

concreate class

d)

None of the above