Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CodeMonkey 2

Total questions: 20

Worksheet time: 13mins

Name
Class
Date
1.

Look at the following statement.

step 10

What is the argument in the statement?

a)

monkey

b)

step

c)

10

2.

Look at the following statement.

step 10

What is the function in the statement?

a)

monkey

b)

step

c)

10

3.

Look at the following statement.

turtle.turnTo banana

What is the function in the statement?

a)

turtle

b)

banana

c)

turnTo

4.

Look at the following statement.

turtle.step 20

What is the object in the statement?

a)

turtle

b)

step

c)

20

5.

What is a function in a program?

a)

any item that can be interacted with

b)

an action that can be carried out

c)

something that modifies that action to give instructions

6.

What is an object in a program?

a)

any item that can be interacted with

b)

an action that can be carried out

c)

something that modifies that action to give instructions

7.

What is an argument in a program?

a)

any item that can be interacted with

b)

an action that can be carried out

c)

something that modifies that action to give instructions

8.

Which of the following can be considered a function?

a)

step

b)

10

c)

turnTo

d)

banana

9.

Which of the following can be considered an argument?

a)

banana

b)

right

c)

20

d)

left

10.

Which of the following are considered objects?

a)

step

b)

turtle

c)

bridge

d)

25

11.

What is the following statement called?

x = 12

a)

assessment

b)

value

c)

variable

d)

assignment

12.

Look at the code below. Which piece is the identifier?

d = 20

step d

turn right

a)

the first d

b)

the second d

c)

step

d)

right

13.

Look at the code below. Which of the items is a value?

d = 20

step d

turn right

a)

d

b)

20

c)

step

d)

right

14.

Describe what will happen in the code below.

x = distanceTo banana

turtle.step 10

turnTo banana

step x

4 lines
15.

What syntax is missing from the follow line of code?

say Boo!

a)

period

b)

arrow

c)

quotation marks

d)

the spacing is wrong

16.

Can you change the value of a variable in your code?

a)

Yes

b)

No

17.

SDG stands for (a)   ?

18.

Which of the following are SDGs?

a)

Decent Work and Economic Growth

b)

Partnerships for the Goals

c)

Responsible Consumption and Production

d)

Industry, Innovation, and Infrastructure

19.

How many SDGs were developed by the United Nations?

a)

7

b)

10

c)

17

d)

22

20.

On a scale from 1-5, how are you feeling about CodeMonkey now that we have reached some of the more challenging skills?

a)

1 - I am SO lost!

b)

2 - I find it challenging.

c)

3 - Neutral (Some of it is hard, but some is easy.)

d)

4 - I understand most of the skills we are learning.

e)

5 - I love CodeMonkey and understand all of the skills.