Chapter 14 Flashcards

1
Q

Line, Circle, and Rectangle are subclasses of the _______ class

A

Shape

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

Assume myCircle is a Circle object. Which of these statements causes my circle to not be filled with a color.

A

myCircle.setFill(null);

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

The ________ arc type causes a straight line to be drawn from one endpoint of the arc to the other endpoint

A

ArcType.CHORD

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

The __________ arc type causes no lines to connect the endpoints. Only the arc will be drawn

A

ArcType.OPEN

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

The _________ arc type causes straight lines to be drawn from each endpoint to the arc’s center point. As a result, the arc will be shaped like a pie slice

A

ArcType.ROUND

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

Which Node class Method do you call to rotate a node about its center?

A

setRotate()

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

This class creates an animation in which a node moves from one position to another over a period of time

A

TranslateTransition

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

You use this class to specify the amount of time that an animation should last.

A

Duration

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

This interpolator causes an animation to start slowly, accelerate, then slow down at the end. This is the default interpolator

A

Interpolator.EASE_BOTH

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

You use these two class to play an audio file

A

Media and MediaPlayer

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

T or F: in a 640 by 480 window, the coordinates of the pixel in the upper-left corner are (0,0).

A

True

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

T or F: in a 640 by 480 window, the coordinates of the pixel in the lower-right corner are (640,480).

A

False

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

T or F: If an ellipse’s X-radius and Y-radius have the same value, then the ellipse will be a circle.

A

True

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

T or F: The Node class’s setEffect method accepts multiple effect object as arguments, allowing you to combine effects.

A

False

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

T or F: Any time the user releases a key, a KEY_PRESSED event occurs.

A

False

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