Final OOP-Lesson 8 Flashcards

1
Q

always closes the shape and has a fill method while polyline doesn’t have.

A

Polygon

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

remains open unless to close it.

A

Polyline

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

gives the directory where the file is located

A

getCodeBase()

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

gives the full address where your file is
located including the filename.

A

getDocumentBase()

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

are the only audio file format being
supported by Java.

A

.wav, .au, and .mid

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

.Wav stands for?

A

Waveform Audio File

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

.Au stands for

A

AUdio file

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

.Mid/Midi

A

Musical Instrument Digital Interface

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

music stops when finished

A

variable.play()

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

music continues playing

A

variable.loop()

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

syntax for adding Sound/Music

A

AudioClip variable = getAudioClip(getCodeBase()/getDocumentBase(), “filename.___”);

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

syntax for Polyline and Polygon

A

Data type variable[ ] = {elements};

.drawPolyline(xPoints[ ], yPoints[ ], nPoints);
.drawPolygon(xPoints[ ], yPoints[ ], nPoints);
.fillPolygon(xPoints[ ], yPoints[ ], nPoints);

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