wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Debugging in Primary Grades (Coding)

Total questions: 10

Worksheet time: 7mins

Name
Class
Date
1.

What is wrong with this code?

(Turn right, step 20)

a)

nothing is wrong with it

b)

the monkey should turn left, step 20, turn right, step 20

c)

the monkey should walk diagonally

d)

the monkey should turn left, step 20, turn left, step 20

2.

I want the song to play 5 times. What is wrong with the code?

a)

You should wait 1 second.

b)

You should click the guitar again.

c)

Change the repeat number to 5

d)

Nothing is wrong with the code

3.

What is the best way to get the monkey to land on the banana?

a)

Use the ruler button

b)

Ask the teacher

c)

Keep trying and don't give up

4.

What is wrong with this code?

a)

Nothing is wrong with the code.

b)

It should be: Setup ..."make a new bear"

c)

It should be: After 4 measures..."unicorn do Body roll"

d)

You should not use backgrounds

5.

What is going to happen every 2 measures?

a)

Nothing

b)

the background will change

c)

Something

d)

A cat will show up and dance

6.

Which code is correct for the squirrel to go to the acorn?

a)

Go up 2 steps. Go left 2 steps.

b)

Go up 1 step. Go right 2 steps.

c)

Go 1 step up. Go right 3 steps

d)

Go 3 steps up. Go right 2 steps.

7.

Choose all the algorithms that take the car to the gas station without bumping into the cones.

a)

Go right 4 steps.

b)

Go up 1 step. Go right 4 steps. Go down 1 step.

c)

Go up 3 steps. Go right 4 steps. Go down 3 steps.

d)

Go up 2 steps. Go right 4 steps. Go down 2 steps.

8.

The racoon wants to go to the bunny without bumping into the obstacles. What is wrong with this code:

1) Go 8 steps left.

2) Go 4 steps up.

a)

1) Should be 8 steps right.

b)

1) Should be 7 steps right.

c)

2) Should be 5 steps up.

d)

Nothing is wrong.

9.

I want the notes to play slower. What can I change?

a)

change repeat 10 times to 5 times.

b)

Change the start sound to something different

c)

Change 0.5 seconds to a bigger number so it waits longer.

d)

it is impossible!

10.

What does "debugging" mean?

a)

Getting rid of all the insects.

b)

Looking for problems in algorithms and fixing them

c)

coding

d)

I don't know.