Unit 7 Quiz Flashcards

1
Q

If a class is limited in its scope that it is needed by only one other class, you sould define that class as _______?

A

Inner class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the following code do?

public String getText()

A

Returns the contents of the text box

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The _______ color is the color of the area behind the text.

A

Background

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A _______ is a computer monitor’s smallest displayable unit.

A

Pixel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The ______ method assigns the width and height of the current windown.

A

setSize

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

If an event is fired, and you want your program to handle the fired event, then you need to create a _______ for the event.

A

Listener

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The _______ color is the color of the text.

A

Foreground

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The basic idea behind ______ is that the program waits for events to occur and the program responds to events if and when they occur.

A

Event Driven Programming

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

A _______ is a message that tells the program that something has happened.

A

Event

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

To adjust a window’s background color, call the content pane’s setBackground method.

T or F

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly