wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Codemonkey Revision 1

Total questions: 25

Worksheet time: 26mins

Name
Class
Date
1.

What function do we use to move left or right?

a)

step

b)

turn

c)

turnTo

d)

goto

2.

Fill in the blank (…..) the correct answer.

  d = 5

step d

turn (a)  

d = d + 5

step d

3.

Which are functions used to help the rat collect matches?

a)

grab(), drop

b)

grab, drop

c)

grab(), drop()

d)

grab, drop()

4.

Which of the following is a correct function?

a)

Step

b)

turnTo

c)

DistanceTo

d)

Goto

5.

What is the compressed function of turnTo + distanceTo?

a)

cometo

b)

go to

c)

goto

d)

come to

6.

What is like a storage unit: we store data in it, and we use it only when

we need it.

a)

A variable

b)

A unit

c)

A statement

d)

A argument

7.

What is a sequence of instructions that repeats a specified number of times?

a)

For loop

b)

If then statement

c)

forever loop

d)

simple loop

8.

What is goto called?

a)

a variable

b)

a function

c)

a set

d)

a statement

9.

What is correct solution for this challenge?

a)
b)
c)
10.

What is x called?

a)

a statement

b)

a function

c)

a variable

d)

a loop

11.

Write the correct codes to get bananas.

4 lines
12.

Write the correct codes to get bananas.

4 lines
13.

Read carefully with the program and fill in the blank with suitable answer.

(a)  

14.

The function “step -10” will make the monkey

a)

Turn around

b)

step forward

c)

step backward

d)

step distanceTo

15.

This code will not beat the level. Why?

a)

Monkey is stepping too far

b)

"step" should be "walk"

c)

Monkey will turn the wrong direction

d)

Monkey is not stepping far enough

16.

What will happen when I run this code?

a)

The turtle will step 10

b)

The monkey will step 10

c)

The monkey will step -10

d)

step x is not a valid command, you can only step a number

17.

 

turn, step, and turnTo are all examples of:

a)

functions

b)

variables

c)

objects

d)

characters

18.

How to define a function in statement 02?

a)

functionname = (r)>

b)

functionName = (a) ->

c)

functionName = (r) ->

d)

functionname = (a) >

19.

Write the name of function that is used in line 14?

(a)  

20.

Which statement is filled in the question mark in line 7?

(a)  

21.

I want the turtle to turn toward the island and then step 22. What code belongs in the blank (line 2) that will help me do that?

a)

moveTo

b)

turnToward

c)

face

d)

turnTo

22.

Line 2 and 3 need to be in a loop that runs 9 times. How can I write a loop in line 1?

a)

times.9 ->

b)

9.times ->

c)

9.loop ->

d)

9 times >

23.

What will be the missing code in line 6?

a)

TurnTo banana

b)

turtle. step d

c)

step -14

d)

d = 6

24.

Which of the following functions measure the distance between monkey and banana?

a)

step

b)

turnTo

c)

distanceTo

d)

walk

25.

Please select the suitable answer for the scenario in line 6.

a)

if

b)

then

c)

else

d)

if then