wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Code.org Unit 3 Assessment Lessons 3-9

Total questions: 18

Worksheet time: 17mins

Name
Class
Date
1.

In which corner, will the square in line 1 be located on the coordinate plane?

a)
upper right
b)
lower left
c)
lower right
d)

upper left

2.

In which corner, will the square in line 2 be located in the coordinate plane? (a)  

Choose from the below words
upper left
upper right
lower left
lower right
3.

The code has to appear in a certain order for the blue and green box to appear layered. The ​ (a)   code will have to appear 1st and the ​ (b)   code will appear 2nd.

Choose from the below words
blue
green
4.

Which line of code would you expect to find the purple square? Remember the purple square is layered on top of the 4 circles. (a)  

Choose from the below words
Line 1
Line 2
Line 3
Line 5
5.

Reorder the following sets of code so the yellow ellipse is behind the green ellipse. Hint: x, y, w, h will help with placing the ellipses.

a)
b)
c)
d)
1)
2)
3)
4)
6.

You have been asked to make the background blue for this set of code. The code for the background would appear on line ​ (a)   because the background is behind the ellipses.

Choose from the below words
1
2
3
4
5
7.

There are 3 conditions for creating a variable label. Choose all 3 below.

a)

Labels can't have spaces.

b)

Labels can't have symbols

c)

Labels can't start with a number.

d)

Capitalization and spelling must be the same.

8.

Why will this code not run?

a)

there has to be a number in the variable

b)

there are supposed to be no spaces in the variable label

c)

there are no caps in variables

9.

Why is the randomNumber block useful in coding?

a)

the random numbers will cause the code to spin

b)

the random numbers will cause the sprite to change colors

c)

random numbers can cause the sprite to change depending on which parameter it has been placed into

10.

There will be ​ (a)   different sets of text that will appear in ​ (b)   different places.

Choose from the below words
two
three
one
11.

What does this block do in code.org?

(a)  

12.

Which line of code is most likely to return an error?

13.

What is a reason to include comments in a program?

a)

Comments tell the computer what the code is doing.

b)

Comments tell the programmer what the code is doing & why.

c)

Comments will tell the program how to fix bugs.

d)

Comments will help find bugs in the program.

14.

A label for a piece of information used in a program.

a)

Property

b)

Variable

c)

initialize

d)

command

15.

variable

a)

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

b)

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

c)

a single image within an animation

d)

A placeholder for a piece of information that can change.

16.

What is x value in the following code?

rect(250, 200, 75, 225);

a)

250

b)

200

c)

75

d)

225

17.

What is height of the rectangle in the following code?

rect(250, 200, 75, 225);

a)

250

b)

200

c)

75

d)

225

18.

What is width of the rectangle in the following code?

rect(250, 200, 75, 225);

a)

250

b)

200

c)

75

d)

225