wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Final Review - Intro to CS 2021 (Part 4)

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.

Which of the following are true about this grid:

a)

the top left is (0, 0)

b)

the bottom right is (400, 400)

c)

the bottom left is (0, -400)

d)

if I put a square at (400, 400) it will show up on the grid

2.

What coordinates would your

squares have to be placed at to

recreate this image?

a)

(0, 0) and (400, 400)

b)

(100, 20) and (400, 400)

c)

(0, 0) and (350, 350)

d)

(0, 400) and (400, 0)

3.

Part of a program that does not work correctly.

a)

error

b)

ellipse

c)

bug

d)

overlay

4.

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


a)

Variable

b)

Property

c)

Random

d)

Sprite

5.

Which of these are names that can be used for a variable?

a)

petalSize

b)

3coordinates

c)

number1

d)

petal count

6.

What will most likely be displayed by this code?

Hint: look at where the drawSprites is located.

a)

pig

b)

rectangle

c)

bear

d)

circle

7.

What text will be displayed by this code?

a)

words

b)

hello

c)

0

d)

15

e)

Nothing

8.

Which of these is the correct way to use a draw loop?

a)
b)
c)
d)
9.

What color is the ellipse?

a)

Gray

b)

Red

c)

Blue

d)

Red with blue border

e)

Blue with red border

10.

Which sprite will be moving?

a)

Cow

b)

Pig

c)

Both the Cow and Pig

d)

None of them

11.

In which direction will the sprite move?

a)

left

b)

right

c)

up

d)

down

12.

Choose all of the blocks that create a new variable in Game Lab.

a)
b)
c)
d)
13.

Every block in Game Lab represents a piece of Javascript code.

a)

True

b)

False

14.

What is the final value of x when this program runs?

a)

3

b)

4

c)

0

d)

Nothing. An error will occur.

15.

What should be changed about this code?

a)

Nothing. It is the best way to write this code.

b)

The blocks should be reordered.

c)

The variable names don't match.

d)

You must always set a variable to equal a number.

16.

Which statement is most accurate about this code?

a)

The program will not run.

b)

The ellipse is very wide.

c)

The ellipse is at the right.

d)

The ellipse is at the left

e)

The ellipse is very tall.

17.

What is wrong with this code?

a)

x has been declared more than once using var.

b)

Values should not exceed 100.

c)

Nothing. It is perfectly fine as is.

18.

Which tool will select a large area of the same color with a single click?

a)
b)
c)
d)
19.

Which tool will erase what is under the mouse?

a)
b)
c)
d)
20.

Which tool(s) allow you to draw?

a)
b)
c)
d)
e)
21.

Which tool(s) allow you to select parts of the picture?

a)
b)
c)
d)
e)
22.

Which of these tools are available in Game Lab?

a)
b)
c)
d)
e)
23.

What location does the x and y of a rectangle represent?

a)
b)
c)
d)
24.

What location does the x and y of an ellipse represent?

a)
b)
c)
d)
25.

What is the location of the ellipse?

a)

(100,100)

b)

(100,300)

c)

(300,100)

d)

(300,300)

26.

If the y-coordinate of a point is increasing, then it is moving _______.

a)

up

b)

down

c)

left

d)

right

27.

If the x-coordinate of a point is decreasing, then it is moving _______.

a)

up

b)

down

c)

left

d)

right

28.

What will be displayed by this code?

a)

A yellow rectangle on black background

b)

Only a black background

c)

A red rectangle on black background

d)

A red rectangle on a yellow background

29.

Which of these values are not likely to be used for this Game Lab code block? (Choose all that apply)

a)

-300

b)

250

c)

50

d)

300

e)

500

30.

What color will be displayed?

a)

Red

b)

Green

c)

Blue

d)

Yellow