wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Code.org CSD Unit 3 Lessons 1-12

Total questions: 20

Worksheet time: 40mins

Name
Class
Date
1.

A series of images that create the illusion of motion by being shown rapidly one after the other.

a)

frame

b)

property

c)

animation

d)

sprite

2.

Attributes that describe an object's characteristics.

a)

Frame

b)

KeyDown

c)

Property

d)

DrawLoop

3.

A single image within an animation.

a)

Frame Rate

b)

IF Statement

c)

set animation

d)

Frame

4.

A graphic character on the screen with properties that describe its location, movement, and look.

a)

Frame Rate

b)

DrawLoop

c)

Property

d)

Sprite

5.

If you wanted to make a sprite twice as big as it currently looks which code would you use?

a)

sprite.y

b)

sprite.scale

c)

sprite.rotation

d)

sprite.setAnimattion

6.

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.)

a)

(line 8) increase the speed of the plane in the draw loop.

b)

(line 7) add plane.rotation into the draw loop

c)

(line 4) add a drawSprites

d)

(line 3) move the background code into the draw loop so that it makes a new background each loop

7.

What is the name of the sprite variable in the code pictured? (Click on picture to enlarge.)

a)

fly

b)

ladybug

c)

bug

d)

space

8.

What keyboard key do you need press to move the sprite?

a)

x

b)

y

c)

up arrow

d)

space

9.

Which direction will the sprite move in the code pictured? (Click on picture to enlarge.)

a)

Left

b)

Right

c)

Up

d)

Down

10.

The common programming structure that implements "conditional statements".

a)

IF Statement

b)

Boolean

c)

Expression

d)

Variable

11.

A Boolean is

a)

an expression that evaluates to True or False.

b)

a single image within an animation

c)

the rate at which frames in an animation are shown, typically measured in frames per second

d)

an algorithm that has been coded into something that can be run by a machine

12.

Frame Rate

a)

an expression that evaluates to True or False.

b)

a single image within an animation

c)

the rate at which frames in an animation are shown, typically measured in frames per second

d)

an algorithm that has been coded into something that can be run by a machine

13.

Any valid unit of code that resolves to a value.

a)

Expression

b)

Variable

c)

Boolean

d)

Conditional

14.

A placeholder for a piece of information that can change.

a)

sprite.x

b)

Variable

c)

Boolean

d)

Sprite

15.

Finding and fixing problems in an algorithm or program.

a)

Parameter

b)

Animation

c)

FRame

d)

Debugging

16.

The code in the image is an example of

a)

an IF Statement

b)

a DrawLoop

c)

the counter pattern

d)

reducing the size of a sprite

17.

The block of code in this image

a)

Creates a sprite

b)

transforms a sprite from a gray square into a picture of a mouse

c)

changes the size of a sprite

d)

changes the x position of a sprite

18.

What is the NAME and starting Y LOCATION of this sprite?

a)

dog, 150

b)

dog, 350

c)

fido, 150

d)

fido, 350

19.

What is the name of the ANIMATION (not the sprite) used in this block of code?

a)

dog

b)

fido

c)

sprite

d)

150

20.

Which line of code creates a sprite?

a)

Line 1

b)

Line 2

c)

Line 8

d)

Line 9