APCSP - Unit 4 Flashcards

1
Q

What component must an image sprite be inserted into?

A

Canvas

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

What event makes the ImageSprite move?

A

Clock timer ticks

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

If you wanted your Image Sprite to move every 3 seconds, what value would you set the timer to?

A

3000 milliseconds

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

How do you stop the motion of the Image Sprite hen the game, such as your Light Bulb app project is over?

A

.timerenabled

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

What function does button1 perform in the light bulb app?

A

You cannot tell because it is a generic name.

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

What exactly did the reset button do in the light bulb app.

A

Clear the values that are being tracked.

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

What control block would you use to determine if a game, using the image sprite is over?

A

An if block

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

Assuming that forward tells the Android to move forward by 10 pixels and turn tells it to turn right by 90 degrees, what shape would be drawn by this algorithm?
forward turn forward turn forward turn forward turn

A

A square

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

What value cannot be generated by a random fraction block?

A

1

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