wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Code.org

Total questions: 65

Worksheet time: 41mins

Name
Class
Date
1.
In coding, an event is:
a)
trying again and again, even when something is hard.
b)
an example of being a good digital citizen.
c)
an error in a program that prevents the program from running as expected.
d)
an action that causes something to happen.
2.

What does this code do? (a)  

Choose from the below words
Moves forward 1 time
Moves forward forever
Moves forward 5 times
Moves left
3.

An error in a program that prevents the program from running as expected. (a)  

Choose from the below words
bug
debugging
for loop
binary
4.

Look at the puzzle and the code below. What can you fix in the code to help the bird get to the pig?

a)

Remove a move forward block

b)

Add a move forward block

c)

Change the first turn block to left

d)

Change the second turn block to left

5.

What shape does this code make? (a)  

Choose from the below words
Rectangle
Triangle
Square
Circle
6.
A placeholder for a piece of information that can change.
a)
Variable
b)
Condition
c)
Program
d)
Loop
7.

the action of doing something over and over again

a)

for loop

b)

while loop

c)

bug

d)

loop

8.

Can this code be written better?

a)

Yes, by using loops (repeat blocks)

b)

No, this is the best way to write this code

9.

What is a behavior?

a)

an action you want the sprite to perform over & over

b)

an action that causes something to happen

c)

doing something over and over again

d)

statements that run under certain conditions

10.

A list of steps to finish a task.

a)

Algorithm

b)

Program

c)

Bug

11.

How long are the sides of this shape?

a)

2 pixels

b)

120 pixels

c)

150 pixels

d)

Purple pixels

12.

What is an algorithm?

a)

a list of shopping items you need

b)

a list of tech items you want

c)

a list of steps to complete a task

13.

Look at the puzzle. What can you fix in the code so the bird will make it to the pig?

a)

Change the first turn block to left

b)

Remove a move forward block

c)

Add a move forward block

d)

Change the second turn block to left

14.

A loop within a loop

a)

for loop

b)

while loop

c)

nested loop

d)

while loop

15.

Another term for an "if-else" statment is

a)

loops

b)

function

c)

conditional

d)

algorithm

16.

Conditionals

a)

run lines of code a specified number of times

b)

check to see if a statement is true or false before running code

c)

always will run a set of commands

d)

will always skip a set of commands

17.

In this code, the condition that needs to be checked is

a)

repeat 2 times

b)

if at flower

c)

get nectar

d)

move forward

18.

There are 2 loops nested in this set of code. The Outer loop will cause the sprite to move​ ​ ​ (a)   and the inner loop will cause the sprite to move ​ (b)   .

Choose from the below words
around the sides
spaces
19.

Match the following

a)
1.

conditional

b)
2.

click event

c)
3.

nested loops

d)
4.

background

e)
5.

sprite

20.

Read the diagram for the conditional statement. According to the diagram, if it is not 10:00 ​p.m. (a)   . If it is 10:00 p.m., ​ (b)   .

Choose from the below words
work on homework
go to sleep
21.

A part of the program that does not work correctly.

a)

Bug

b)

Break

c)

Loop

22.

The action of doing something over and over again.

a)

Looping

b)

Bugging

c)

Programming

23.

The art of creating a program.

a)

Artistic

b)

Programming

c)

Looping

24.

What is a list of steps that you can follow to finish a task?

a)

Code

b)

Program

c)

Algorithm

25.

What is an algorithm?

a)

a list of shopping items you need

b)

a list of tech items you want

c)

a list of steps to complete a task

26.

What is debugging?

a)

taking an insect out the computer

b)

fixing a program in an algorithm

c)

breaking down a problem

27.

What does this code do?

a)

Moves forward 1 time

b)

Moves forward forever

c)

Moves forward 5 times

d)

Moves left

28.

What does this code do?

a)

Moves forward, turns, moves forward

b)

Moves forward 2 times, turns left, moves forward 2 more times

c)

Moves forward 4 times and turns left

d)

Moves and turns

29.
Coding can be used to
a)
Program robots
b)
create websites, games & apps
c)
tell computers what to do
d)
all of the above
30.

What blocks would be needed for Laurel to collect all the jewels?

a)

b)

c)

31.

Where is the mistake in this algorithm?

a)

6th box should be "shade"

b)

5th box should be "left arrow"

c)

4th box should be "down arrow"

32.
a)

b)

c)

33.

Use loops to draw this staircase.

Each stair step is 50 pixels long and 50 pixels tall

You will need to turn 90 degrees in each direction

a)

b)

c)

d)

34.

The following blocks will allow the bee to eat all the nectar.

a)

True

b)

False

35.

Solve the puzzle

a)

b)

c)

d)

36.

What is this called

a)

Reapet

b)

Nested Loop

c)

Loop

d)

Nothing

37.

Nested Loop is

a)

Loop inside another Loop

b)

The action of doing something over and over again.

c)

an action causing something to happen

38.
In coding, an event is:
a)
trying again and again, even when something is hard.
b)
an example of being a good digital citizen.
c)
an error in a program that prevents the program from running as expected.
d)
an action that causes something to happen.
39.

A loop that continues to repeat while a condition is true.

a)

while loop

b)

until loop

c)

for loop

d)

bug

40.

A loop command that tells you to do something only up to the point that something becomes true.

a)

until loop

b)

conditional

c)

nested loop

d)

while loop

41.
A placeholder for a piece of information that can change.
a)
Variable
b)
Condition
c)
Program
d)
Loop
42.

statements that only run under certain conditions

a)

conditionals

b)

paramenter

c)

reflect

d)

variable

43.

What is an algorithm?

a)

a list of shopping items you need

b)

a list of tech items you want

c)

a list of steps to complete a task

44.

Look at the puzzle. What can you fix in the code so the bird will make it to the pig?

a)

Change the first turn block to left

b)

Remove a move forward block

c)

Add a move forward block

d)

Change the second turn block to left

45.

What does this code do?

a)

Moves forward, turns, moves forward

b)

Moves forward 2 times, turns left, moves forward 2 more times

c)

Moves forward 4 times and turns left

d)

Moves and turns

46.

Sequencing

a)

Part of a program that does not work correctly.

b)

Putting commands in correct order so computers can read the commands.

c)

An action that causes something to happen.

d)

to write instructions for a computer.

47.

What kind of loop would be MOST helpful to complete this puzzle?

a)

Until loop; because you could program it to go around and get nectar until it's done.

b)

Nested loop; because it's the same on all sides, so you could nest the loop to complete one of the sides into a repeat 3 times loop.

c)

For loop; because you can set the "count" to 3 since there are three sides that are the same.

d)

While loop; because you could program the bee to keep moving forward while the condition that there is still nectar is true.

48.

Which of the following examples IS NOT an example of a conditional?

a)
b)
c)
d)
49.

How many times will the bee collect nectar if it follows the entire path?

a)

5

b)

7

c)

8

d)

6

50.

The following blocks will allow the bee to eat all the nectar.

a)

True

b)

False

51.

Another term for an "if-else" statment is

a)

loops

b)

function

c)

conditional

d)

algorithm

52.

statements that only run under certain conditions

a)

conditionals

b)

paramenter

c)

reflect

d)

variable

53.

Conditionals let your program

a)

Repeat code to increase efficiency

b)

Make decisions to follow a different path

c)

Run in the right order

d)

Give a set of commands a custom name

54.

The cloud is blocking the view. There could be a flower under this cloud. If there is a flower, the bee will need to collect nectar once. If there is not a flower the bee should do nothing. Take a good look at the code below. What do you think will happen after you click "Run"?

a)

The bee will move to the cloud and try to get nectar, no matter what.

b)

The bee will move to the cloud and only try to get nectar if there is a flower underneath.

c)

The bee will move to the cloud and then do nothing, no matter what.

d)

The bee will not reach the cloud.

55.

Which of these problems will this code solve?

a)
b)
c)
d)

All of these

e)

None of these

56.

Use the if/else block to collect nectar at flowers and make honey at honeycomb. Remember: if there is a flower, the bee only needs to get nectar once. If there is a honeycomb, the bee only needs to make honey once.

a)
b)
c)
d)
e)

None of these

57.

Which of these describes the block shown?

a)

When something happens, start this algorithm.

b)

If the statement is true do this code.

c)

If the condition is true do this code. If the statement is false, do something else.

d)

Repeat this code a certain number of times.

e)

All of these

58.

Which of these describes the block shown?

a)

When something happens, start this algorithm.

b)

If the statement is true do this code.

c)

If the statement is true do this code. If the statement is false, do something else.

d)

Repeat this code a certain number of times.

e)

All of these

59.

Which of these describes the block shown?

a)

When something happens, start this algorithm.

b)

If the statement is true do this code.

c)

If the condition is true do this code. If the statement is false, do something else.

d)

Repeat this code a certain number of times.

e)

All of these

60.

Which of these describes the block shown?

a)

When something happens, start this algorithm.

b)

If the statement is true do this code.

c)

If the condition is true do this code. If the statement is false, do something else.

d)

Repeat this code a certain number of times.

e)

All of these

61.

how to change the size of the girl?

a)
b)
c)
62.

Which block is used to remove the sprite?

a)
b)
c)
d)
63.

Which block we used to set the size?

a)
b)
64.

Which block is used to make new sprite with there name?

a)
b)
c)
d)
65.

Which block we used to make sprite without there name?

a)
b)
c)
d)