wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

CSD Unit 3 Lessons 1-7

Total questions: 37

Worksheet time: 19mins

Name
Class
Date
1.

Match the code with the output

a)
b)
c)
2.

Match the code with the output

a)
b)
c)
3.

Match the code with the output

a)
b)
c)
4.

Match the code with the output

a)
b)
c)
5.

Match the code with the output

a)
b)
c)
6.
a)
b)
c)
7.

Which command matches this block of code?

a)

Draws an ellipse onto the display centered at x and y and inscribed in a rectangle with sides length w(idth) and h(eight).

b)

Sets the color used to fill shapes.

c)

Returns a random number in the closed range from min to max.

8.

Which command matches this block of code?

a)

Creates a new sprite and assigns it to the variable specified.

b)

Declares and assigns an initial value to a variable

c)

Draws an ellipse onto the display centered at x and y and inscribed in a rectangle with sides length w(idth) and h(eight).

9.

Which command matches this block of code?

a)

Declares and assigns an initial value to a variable.

b)

The number of times per second the screen is refreshed.

c)

Returns a random number in the closed range from min to max.

10.

Which command matches this block of code?

a)

Declares and assigns an initial value to a variable.

b)

Creates a new sprite and assigns it to the variable specified.

c)

Shrink or grow a sprite keeping the height to width ratio the same.

11.

Which command matches this block of code?

a)

The number of times per second the screen is refreshed.

b)

Shrink or grow a sprite keeping the height to width ratio the same.

c)

Declares and assigns an initial value to a variable.

12.

Which command matches this block of code?

a)

Sets the color used for the background of your game.

b)

Declares and assigns an initial value to a variable.

c)

Sets the color used to fill shapes

13.

Which command matches this block of code?

a)

Draws a rectangle onto the display positioned at x and y with sides length w(idth) and h(eight).

b)

Draws an ellipse onto the display centered at x and y and inscribed in a rectangle with sides length w(idth) and h(eight).

c)

The number of times per second the screen is refreshed.

14.

Which command matches this block of code?

a)

The lines of code contained inside its block are continuously executed until the program is stopped.

b)

Returns a random number in the closed range from min to max.

c)

Sets the color used for the background of your game.

15.

Which command matches this block of code?

a)

Draws an ellipse keeping the height to width ratio the same.

b)

Shrink or grow a sprite keeping the height to width ratio the same.

c)

Draws a rectangle keeping the height to width ratio the same.

16.

Which command matches this block of code?

a)

The number of times per second the screen is refreshed.

b)

The lines of code contained inside its block are continuously executed until the program is stopped.

c)

Creates a new sprite and assigns it to the variable specified.

17.

Which command matches this block of code?

a)

Displays a group of sprites. If no parameter is specified, draws all sprites in the sketch.

b)

Shrink or grow a sprite keeping the height to width ratio the same.

c)

The lines of code contained inside its block are continuously executed until the program is stopped.

18.

Part of a program that does not work correctly.

a)

Bugging

b)

Bug

c)

Parameter

d)

Program

19.

Finding and fixing problems in an algorithm or program.

a)

Bug

b)

Variable

c)

Property

d)

Debugging

20.

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

a)

Parameter

b)

Sprite

c)

Program

d)

Property

21.

A graphic character on the screen with properties that describe its location,

a)

Sprite

b)

Property

c)

Animation

d)

Variable

22.

An extra piece of information passed to a function to customize it for a specific need

a)

Property

b)

Variable

c)

Program

d)

Parameter

23.

A placeholder for a piece of information that can change.

a)

Parameter

b)

Frame

c)

Variable

d)

Sprite

24.

Attributes that describe an object's characteristics

a)

Property

b)

Variable

c)

Bug

d)

Parameter

25.

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

a)

Frame

b)

Animation

c)

Bug

26.

A single image within an animation

a)

Bug

b)

Sprite

c)

Frame

27.

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

a)

Frame Rate

b)

Program

c)

Interest Rate

28.
What is at the end of a line of code?
a)
#
b)
;
c)
)
d)
>
29.

What is x value in the following code?

rect(250, 200, 75, 225);

a)

250

b)

200

c)

75

d)

225

30.

In which direction will the sprite move?

plane.x = plane.x + 2

a)

left

b)

right

c)

up

d)

down

31.

Which variable is named correctly?

a)

4sides

b)

Sidesfour

c)

sides4

d)

SidesFour

32.

In which direction will the sprite move?

bee.y = bee.y + 2

a)

left

b)

right

c)

up

d)

down

33.

What is y value in the following code?

rect(250, 200, 75, 225);

a)

250

b)

200

c)

75

d)

225

34.

Which sprite property would you change to move the sprite from left to right?

a)

sprite.x

b)

sprite.y

c)

sprite.scale

d)

sprite.rotation

35.

Which sprite property would you change to move the sprite from up and down?

a)

sprite.x

b)

sprite.y

c)

sprite.scale

d)

sprite.rotation

36.

Which sprite property would you change to make the sprite grow in size?

a)

sprite.x

b)

sprite.y

c)

sprite.scale

d)

sprite.rotation

37.

Which sprite property would you change to make the sprite turn in a circle?

a)

sprite.x

b)

sprite.y

c)

sprite.scale

d)

sprite.rotation