wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AWT

Total questions: 18

Worksheet time: 7mins

Name
Class
Date
1.

Which of the following classes are derived from the Container class? Select FOUR correct answers.

a)

Component

b)

Panel

c)

Applet

d)

Dialog

e)

Frame

2.

Which of the following classes are derived from the Component class? Select FOUR correct answers.

a)

Container

b)

Window

c)

List

d)

Choice

e)

MenuItem

3.

Which abstract class is the super class of all menu related classes?

a)

MenuComponent

b)

List

c)

MenuItem

d)

Choice

4.

Which class can be used to represent a checkbox with a textual label that can appear in a menu?

a)

MenuBar

b)

MenuItem

c)

CheckboxMenuItem

d)

Checkbox

e)

Menu

5.

Which layout manager places components in one of five regions: north, south, east, west, and center?

a)

BorderLayout

b)

GridLayout

c)

FlowLayout

d)

CardLayout

6.

Which class encapsulate AWT related events?

a)

AWTEvent

b)

Event

7.

Which class dispatches events to multiple listeners?

a)

AWTEventMulticaster

b)

EventMulticaster

c)

AWTMulticaster

d)

AWTEvent

8.

________ is a blank semantic free window.

a)

Frame

b)

Canvas

c)

Window

9.

Which LayoutManager emulate index cards and only one on the top is showing?

a)

CardLayout

b)

GridLayout

c)

GridBagLayout

d)

FlowLayout

10.

________ creates a POP-UP list with single selection and single visible item only.

a)

Choice

b)

List

11.

Which class encapsulate various information related to Font. This information helps us to display text in the Window.

a)

Font

b)

FontMetrics

c)

Window

d)

Frame

12.

________ encapsulates the borders of the container.

a)

BorderLayout

b)

Insets

c)

FlowLayout

d)

GridLayout

13.

________ encapsulates keyboard shortcuts for menu item.

a)

MenuItem

b)

MenuShortcut

c)

MenuItemShortcut

d)

Shortcut

14.

________ encapsulates a cartesian coordinates pair x and y.

a)

Point

b)

Dimension

15.

________ supports automated testing for AWT based applications.

a)

Robot

b)

Cursor

c)

AutoTest

d)

AWTTest

16.

ScrollPane is a ________ .

a)

Container

b)

Component

17.

________ contains the colors of GUI Widgets.

a)

Color

b)

SystemColor

c)

Graphics

18.

Immediate superclass for TextField and TextArea is?

a)

TextComponent

b)

Component

c)

Container

d)

MenuComponent