wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Code.org Coding Blocks

Total questions: 78

Worksheet time: 45mins

Name
Class
Date
1.

What is an ALGORITHM?

a)

It is a computer

b)

A set of step by step instructions for problem solving.

c)

It's a math idea

2.

What does the STEP button do in code.org?

a)

It clicks through my code step by step to help me solve my code.

b)

It is just an orange button

3.

What is the RUN button?

a)

It allows me to play/practice my algorithm

b)

It makes my character run.

c)

It is just a button

4.

I can do what with this..

a)

Click it because it's pink.

b)

Repeat my steps with LESS puzzle pieces.

c)

Looks kind if weird.

5.

What is this puzzle piece?

a)

Looks for items to grab (collect)

b)

It is just a green button

c)

I don't know

6.

What is this called

a)

An event block

b)

A repeater

c)

JUST a block

7.

What color are event blocks?

a)

Pink

b)

Green

c)

Blue

8.

The area where we do coding is called_________

a)

Stage

b)

Toolbox

c)

Workspace

d)

All the area

9.

If u want your artist to turn right ,which block do you choose?

a)
b)
c)
d)

All of these

10.

The action of doing something over and over again.

a)

Looping

b)

Bugging

c)

Programming

11.

What will this block do

4 lines
12.

What is the use of this block?

a)

It will set the size only

b)

It will change the dancer

c)

It will change the size of the dancer following the bass of the song

d)

It will set its background

13.

Can we select songs in Code.org

a)

In artist lab

b)

In Dance party

c)

In Sprite lab

d)

None of these

14.

how we can make the game work

a)

Move forward

b)

click RUN

c)

I don't know

d)

Nothing

15.

how we can move one step forward

a)
b)
c)
16.

Debugging means Fix The Problem

a)

True

b)

False

17.

Solve this puzzle

a)
b)
c)
d)
18.

Algorithm

a)

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

b)

Finding and fixing problems in your algorithm or program.

c)

An action that causes something to happen.

d)

a step-by-step procedure for solving a problem

19.

Bug

a)

Part of a program that does not work correctly.

b)

An algorithm that has been coded into something that can be run by a machine.

c)

The art of creating a program.

d)

An action that causes something to happen.

20.

Which code will get the Angry Bird to the Pig?

a)
b)
c)
21.

What is wrong with the code to get Scrat to the acorn?

a)

The first "move forward" is not needed.

b)

The first "turn right" should be a "turn left"

c)

The second "move forward" is extra

d)

The last "turn right" should be a "turn left"

22.

A part of the program that does not work correctly.

a)

Bug

b)

Break

c)

Loop

23.

What does this code do?

a)

Moves forward 1 time

b)

Moves forward forever

c)

Moves forward 5 times

d)

Moves left

24.

Which of the code below will complete this puzzle?

a)
b)
c)
d)
25.

How long are the sides of this shape?

a)

2 pixels

b)

120 pixels

c)

150 pixels

d)

Purple pixels

26.

The language that programmers create and use to tell a computer what to do

a)

Code

b)

Command

c)

Run Program

d)

BINARY

27.

A block is

a)

an instruction in a coding program that can be joined to other blocks to build code

b)

visual elements on a screen that are not text, such as pictures, icons and symbols

c)

something a computer program can react to, such as a key being pressed or mouse being clicked

d)

place to store data that can change in a program

28.

Coding can be used to

a)

Program robots

b)

Create websites, games & apps

c)

Tell computers what to do

d)

All of the above

29.

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

a)

5

b)

7

c)

8

d)

6

30.
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.
31.

What does this code do?

a)

Moves forward 1 time

b)

Moves forward forever

c)

Moves forward 5 times

d)

Moves left

32.

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

a)

bug

b)

debugging

c)

for loop

d)

binary

33.

Finding and fixing errors in a program.

a)

debugging

b)

bug

c)

nested loop

d)

event

34.

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

35.

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

a)

while loop

b)

until loop

c)

for loop

d)

bug

36.

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

37.

What shape does this code make?

a)

Rectangle

b)

Triangle

c)

Square

d)

Circle

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

the action of doing something over and over again

a)

for loop

b)

while loop

c)

bug

d)

loop

40.

Can this code be written better?

a)

Yes, by using loops (repeat blocks)

b)

No, this is the best way to right this code

41.

statements that only run under certain conditions

a)

conditionals

b)

paramenter

c)

reflect

d)

variable

42.

A list of steps to finish a task.

a)

Algorithm

b)

Program

c)

Bug

43.

How long are the sides of this shape?

a)

2 pixels

b)

120 pixels

c)

150 pixels

d)

Purple pixels

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.

Is there more than one way to code a puzzle?

a)

No

b)

No, but you can make up your own design

c)

Yes

d)

Yes, but it will be counted wrong

46.

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

47.
a loop within a loop, an inner loop within the body of an outer one.
a)
Nested Loop
b)
Condition
c)
while loop
d)
For Loop
48.

A list of steps to finish a task.

a)

Algorithm

b)

Program

c)

Bug

49.

How did the squirrel get the acorn? (simple way)

a)
b)
c)
50.

Do something again

a)

Programming

b)

Condition

c)

Repeat

51.

What do you need to do to get Squirell to the acorn?

a)
b)
c)
52.

Move around the broken ice to get Squirrel to the acorn.

a)
b)
c)
d)
53.

which one is true?

a)
b)
c)
54.

Which one is true?

a)
b)
c)
55.

What does this code do?

a)

Moves forward 1 time

b)

Moves forward forever

c)

Moves forward 5 times

56.

Which block will make a new sprite?

a)
b)
c)
57.

What is a "behavior" in the sprite lab?

a)

An action that a sprite performs continuously until it’s told to stop.

b)

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

c)

An action that causes something to happen.

58.

what are behaviors in sprite lab?

a)

behaviors are used to do control the sprite,

b)

Behaviors are blocks that tell the sprite to do a specific set of instructions

c)

none of these

59.

Which path will allow Angry Bird to reach the pig?

a)

moveForward();

moveForward();

turnRight();

moveForward();

moveForward();

b)

moveForward();

moveForward();

turnLeft();

moveForward();

moveForward();

c)

moveForward();

moveForward();

turnLeft();

moveForward();

d)

moveForward();

turnRight();

moveForward();

moveForward();

60.

What will the code do?

a)

the monster will move west-to-east in loop

b)

the monster will move eastwards

c)

the monster will move east in loop

d)

the monster will dance

61.

how to change the size of the girl?

a)
b)
c)
62.

After three moves, the bee is not on nectar. Will the bee collect nectar?

a)

No, the code skips get_nectar()

b)

Yes, the code runs get_nectar()

63.

What shape does this code make?

a)

Rectangle

b)

Triangle

c)

Square

d)

Circle

64.

In this section of code, if the bee is on a honeycomb, what will happen?

a)

The bee will make honey.

b)

The bee will move forward twice

c)

The bee will get nectar.

d)

You can't tell from this code

65.

Which is the correct way to shorten this code?

(click the picture to make it bigger)

a)
b)
66.

The artist has to draw a window for the spaceship.

How many times does the pattern need to repeat in order to complete the picture?

a)
b)
c)
d)
67.

Which block would you use to replace the "?" in the code?

(click the picture to make it bigger)

a)
b)
c)
d)
68.

What number should replace the "?" in the code?

a)

3

b)

4

c)

12

d)

11

69.

How many lines will the artist draw based on the code in the picture?

a)

1

b)

2

c)

3

d)

4

70.

Which of these blocks is a loop structure?

a)
b)
c)
d)
71.

An algorithm that has been coded into something that can be run by a machine is a(n)...

a)

program

b)

code

c)

command

d)

wrong

72.

Debug has two steps. They are...

a)

seek and destroy the enemy

b)

find and fix the problem

c)

find and highlight the problem

d)

raise your hand and ask for help

73.

A nested loop is a(n)...

a)

a loop inside a loop

b)

a repeat loop

c)

conditional loop

d)

a nest with an egg

74.

This loop is pink in Code.org. The programmer use the loop when there the code must be repeated a set number of times.

a)

while loops

b)

if-then loops

c)

repeat loops

d)

conditional loops

75.

Which of these blocks gets the bunny to stop moving with arrow keys?

a)
b)
76.

Which of these gets the computer to print "Duck" 5 times?

a)
b)
c)
d)
77.

Behaviors are blocks that tell the sprite to do a specific set of instructions. Which of these makes the sprite wander around the screen?

a)
b)
c)
d)
78.

Which of these blocks is a loop structure?

a)
b)
c)
d)