NEW
Font size
WorksheetsCode.org CSD Unit 3 Lessons 1-12
Total questions: 20
Worksheet time: 40mins
A series of images that create the illusion of motion by being shown rapidly one after the other.
frame
property
animation
sprite
Attributes that describe an object's characteristics.
Frame
KeyDown
Property
DrawLoop
A single image within an animation.
Frame Rate
IF Statement
set animation
Frame
A graphic character on the screen with properties that describe its location, movement, and look.
Frame Rate
DrawLoop
Property
Sprite
If you wanted to make a sprite twice as big as it currently looks which code would you use?
sprite.y
sprite.scale
sprite.rotation
sprite.setAnimattion
This plane looks like someone is smearing a stamp across a paper.
How would you fix this code so that it looks likes the plane is smoothly moving across the scene? (Click on image to enlarge.)
(line 8) increase the speed of the plane in the draw loop.
(line 7) add plane.rotation into the draw loop
(line 4) add a drawSprites
(line 3) move the background code into the draw loop so that it makes a new background each loop
What is the name of the sprite variable in the code pictured? (Click on picture to enlarge.)
fly
ladybug
bug
space
What keyboard key do you need press to move the sprite?
x
y
up arrow
space
Which direction will the sprite move in the code pictured? (Click on picture to enlarge.)
Left
Right
Up
Down
The common programming structure that implements "conditional statements".
IF Statement
Boolean
Expression
Variable
A Boolean is
an expression that evaluates to True or False.
a single image within an animation
the rate at which frames in an animation are shown, typically measured in frames per second
an algorithm that has been coded into something that can be run by a machine
Frame Rate
an expression that evaluates to True or False.
a single image within an animation
the rate at which frames in an animation are shown, typically measured in frames per second
an algorithm that has been coded into something that can be run by a machine
Any valid unit of code that resolves to a value.
Expression
Variable
Boolean
Conditional
A placeholder for a piece of information that can change.
sprite.x
Variable
Boolean
Sprite
Finding and fixing problems in an algorithm or program.
Parameter
Animation
FRame
Debugging
The code in the image is an example of
an IF Statement
a DrawLoop
the counter pattern
reducing the size of a sprite
The block of code in this image
Creates a sprite
transforms a sprite from a gray square into a picture of a mouse
changes the size of a sprite
changes the x position of a sprite
What is the NAME and starting Y LOCATION of this sprite?
dog, 150
dog, 350
fido, 150
fido, 350
What is the name of the ANIMATION (not the sprite) used in this block of code?
dog
fido
sprite
150
Which line of code creates a sprite?
Line 1
Line 2
Line 8
Line 9
