wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Code.org Test 1

Total questions: 150

Worksheet time: 5hrs 59mins

Name
Class
Date
1.

Which block would you use to create a variable in a program on Code.org?

a)
b)
c)
d)
2.

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

(click the picture to make it bigger)

a)
b)
c)
d)
3.

What is the next block you would add to solve this puzzle?

a)
b)
c)
d)
4.

Which block would you use to create a variable in a program on Code.org?

a)
b)
c)
d)
5.

Which is the correct code for this puzzle?

a)
b)
6.

Which is the correct way to shorten this code?

(click the picture to make it bigger)

a)
b)
7.

What block would be the first step in creating a code that tells the artist to draw over the gray lines?

a)
b)
c)
d)
8.

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)
9.

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

(click the picture to make it bigger)

a)
b)
c)
d)
10.

What is the next block you would add to solve this puzzle?

a)
b)
c)
d)
11.

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

a)

3

b)

4

c)

12

d)

11

12.

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

a)

1

b)

2

c)

3

d)

4

13.

Which of these blocks is a loop structure?

a)
b)
c)
d)
14.

The action of doing something over and over again.

a)

Looping

b)

Bugging

c)

Programming

15.

What is the action of doing something over and over again?

a)

Repeat

b)

Loop

c)

Debugging

16.

What does this code do? (a)  

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

Which block would you use to create a variable in a program on Code.org?

a)
b)
c)
d)
18.

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

(click the picture to make it bigger)

a)
b)
c)
d)
19.

What is the next block you would add to solve this puzzle?

a)
b)
c)
d)
20.

Which block would you use to create a variable in a program on Code.org?

a)
b)
c)
d)
21.

Which is the correct code for this puzzle?

a)
b)
22.

Which is the correct way to shorten this code?

(click the picture to make it bigger)

a)
b)
23.

What block would be the first step in creating a code that tells the artist to draw over the gray lines?

a)
b)
c)
d)
24.

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)
25.

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

(click the picture to make it bigger)

a)
b)
c)
d)
26.

What is the next block you would add to solve this puzzle?

a)
b)
c)
d)
27.

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

a)

3

b)

4

c)

12

d)

11

28.

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

a)

1

b)

2

c)

3

d)

4

29.

Which of these blocks is a loop structure?

a)
b)
c)
d)
30.

The action of doing something over and over again.

a)

Looping

b)

Bugging

c)

Programming

31.

What is the action of doing something over and over again?

a)

Repeat

b)

Loop

c)

Debugging

32.

What number will be output by the console.log command on line 7?

a)

10

b)

100

c)

20

d)

200

33.

What text will be output by the program?

a)

less than 10

b)

less than 20

c)

less than 30

d)

30 or more

34.

What will be the order of letters printed to the console when this program is run?

a)

a b c

b)

a b c b c b c

c)

a b c b c

d)

a b c a

35.

A movie theater charges different ticket prices based on a customer's age. The prices are shown in the table below.

The customer's age is stored in the variable age and the price is stored in the variable price. Which piece of code will correctly decide the price for each ticket.

a)

b)

c)

d)

36.

What will the value of the variable bags be at the end of the flowchart shown here?

a)

1

b)

2

c)

3

d)

4

37.

Evaluate:


10 / 2 evaluates to

a)

1

b)

0.5

c)

2

d)

5

38.

What is the result of running this program and clicking on a buttonUp button 20 times?

00 var Count

01 Count = 0

02 onevent(buttonUp, Click), Count = Count + 1

a)

Count = 0

b)

Count = 19

c)

Count = 20

d)

Count = Undefined

39.

Assume that the two variables age and day have been initialized with the values shown.

var age = 16;

var day = "Monday";


Determine if the following statement evaluates to true or false.

(age > 10) && (age < 20)

a)

true

b)

false

40.

Assume that the two variables age and day have been initialized as shown below.


var age = 16;

var day = "Monday";


Determine if the following statement evaluates to true or false.


(day == "Tuesday") || (age < 12)

a)

true

b)

false

41.

Define Algorithm

a)
A cooking recipe
b)
A type of computer
c)
A musical instrument
d)
A step-by-step procedure or formula for solving a problem or accomplishing some end.
42.

Define Bug

a)
A bug is a type of insect that causes harm to plants or animals.
b)
A bug is a feature in a software program that enhances its functionality.
c)
A bug is a small device used for eavesdropping or surveillance.
d)
A bug is a coding error in a computer program that causes it to produce unexpected results or behave in unintended ways.
43.

Define Debugging

a)
Debugging is the process of ignoring errors in a computer program.
b)
Debugging is the process of enhancing errors in a computer program.
c)
Debugging is the process of identifying and fixing errors or bugs in a computer program.
d)
Debugging is the process of creating errors in a computer program.
44.

Define Sequencing

a)
Sequencing is the process of mixing ingredients in a recipe
b)
Sequencing is the process of putting items in a specific order based on a predetermined set of rules or criteria.
c)
Sequencing is the process of solving mathematical equations
d)
Sequencing is the process of organizing files in a computer
45.

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

a)

Code

b)

Program

c)

Algorithm

46.

Define Program

a)
A program is a collection of data stored in a computer
b)
A program is a type of computer hardware
c)
A program is a physical device used for computing tasks
d)
A program is a set of instructions that tells a computer what to do.
47.

Look at the program below. What will happen when you click "Run"?

a)

   The bird will get to the pig.

b)

The bird will not reach the pig.

c)

 I don't know.

48.

Define Conditionals

a)
Conditionals are statements in programming that perform different actions based on whether a certain condition is true or false.
b)
Conditionals are loops in programming that repeat a certain action based on a condition
c)
Conditionals are variables in programming that store boolean values
d)
Conditionals are functions in programming that perform mathematical operations
49.

Is this solution correct?

a)

Yes

b)

No

50.

How many many times will the "move forward" command execute in this code?

a)

12

b)

8

c)

3

d)

4

51.

What is an Algorithm?

a)

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

b)

An alligator who plays the drums.

c)

2+4x6-1

d)

A list of steps to finish a task.

52.

What is a program?

a)

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

b)

A professional grandma.

c)

A list of steps to finish a task.

d)

A musical performance.

53.

Which of these robots uses many programs to perform actions like opening a jar, walking up stairs, and playing soccer?

a)
b)
c)
d)
54.

What is a "Bug"?

a)

An insect with 8 legs.

b)

Part of a program that does not work correctly.

c)

The action of doing something over and over again.

d)

Someone who bothers you.

55.

What is a loop?

a)

Finding and fixing problems in an algorithm or program.

b)

A fruity breakfast cereal.

c)

The action of doing something over and over again.

d)

A rope.

56.

What is the best way to solve this Angry Birds Puzzle?

a)
b)
c)
d)
57.

What will happen when I hit run on this code?

a)

The bird will reach the pig.

b)

The bird will not reach the pig, or hit a wall.

c)

The bird will hit the wall before he reaches the pig.

d)

The bird will do nothing.

58.

What is "Debugging"?

a)

Finding and fixing problems in an algorithm or program.

b)

Squishing a bunch of insects.

c)

Taking the CPU out of your device.

d)

Part of a program that does not work correctly.

59.

What is the best way to solve this puzzle?

a)
b)
c)
d)
60.

Solve this puzzle by adding one block at the end.

a)
b)
c)
d)
61.

Which word means to fix a mistake in the code?

a)

Sequence

b)

Binary

c)

Loop

d)

Debug

62.

Sequencing helps the reader.......

a)

read.

b)

do math.

c)

do writing.

d)

understand the order of events in a story.

63.

What are some clue words for sequencing?

a)

as a result of, therefore

b)

first, next, then, finally

c)

main idea, details

d)

summarize, re-read

64.

A part of the program that does not work correctly.

a)

Bug

b)

Break

c)

Loop

65.

Trying again and again, even when something is very hard.

a)

persistence

b)

algorithm

c)

computational thinking

d)

loop

66.

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

a)

Code

b)

Program

c)

Algorithm

67.

What is debugging?

a)

taking an insect out the computer

b)

fixing a program in an algorithm

c)

breaking down a problem

68.
If you weren't able to complete a challenge the first time you should
a)
pout
b)
give up
c)
try again
d)
bang the keyboard
69.

Solve the puzzle

a)
b)
c)
d)
70.

Solve the Puzzle

a)
b)
c)
71.

What is a sprite?

a)

A delicious lemon-lime soda.

b)

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

c)

A graphic on the screen with a location, size, and appearance.

d)

A small, magical, fairy-like creature.

72.

What is a behavior?

a)

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

b)

When you act a certain way that gets you in trouble.

c)

Solving an error in a line of code.

d)

A graphic on the screen with a location, size, and appearance.

73.

What do you think will happen when you run this code?

a)

Nothing will happen.

b)

The tumbleweed will move up and down.

c)

The tumbleweed will explode.

d)

The tumbleweed will perform the "tumbling" behavior.

74.

Which of these blocks is a Behavior block?

a)
b)
c)
d)
75.

Which of these blocks would let you add a new sprite to your program?

a)
b)
c)
d)
76.

What is an event?

a)

Something on your calendar that you've been preparing for for weeks!

b)

An evil tent.

c)

An action that causes something to happen.

d)

A big party.

77.

Which of these behavior blocks would make your sprite spin around?

a)
b)
c)
d)
78.

Which event would allow me to program certain actions to the press of a button?

a)
b)
c)
d)
79.

Which event would allow me to program certain actions to when a sprite is clicked?

a)
b)
c)
d)
80.

What will happen when I click run on this program?

a)

None of the aliens will begin their behaviors.

b)

The aliens will all begin their behaviors, and when the blue and yellow aliens touch, the bell will stop everything.

c)

The aliens will all begin their behaviors, and when the blue and pink aliens touch, the blue alien will switch from jittering to shrinking

d)

The aliens will all begin their behaviors, and when the blue and the pink aliens touch, all of them will stop everything.

81.

how we can make the game work

a)

Move forward

b)

click RUN

c)

I don't know

d)

Nothing

82.

how we can move one step forward

a)
b)
c)
83.

Debugging means Fix The Problem

a)

True

b)

False

84.

Solve this puzzle

a)
b)
c)
d)
85.

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

86.

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.

87.

Which code will get the Angry Bird to the Pig?

a)
b)
c)
88.

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"

89.

A part of the program that does not work correctly.

a)

Bug

b)

Break

c)

Loop

90.

The action of doing something over and over again.

a)

Looping

b)

Bugging

c)

Programming

91.

What does this code do?

a)

Moves forward 1 time

b)

Moves forward forever

c)

Moves forward 5 times

d)

Moves left

92.

Which of the code below will complete this puzzle?

a)
b)
c)
d)
93.

How long are the sides of this shape?

a)

2 pixels

b)

120 pixels

c)

150 pixels

d)

Purple pixels

94.

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

a)

Code

b)

Command

c)

Run Program

d)

BINARY

95.

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

96.

Coding can be used to

a)

Program robots

b)

Create websites, games & apps

c)

Tell computers what to do

d)

All of the above

97.

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

a)

5

b)

7

c)

8

d)

6

98.

TRUE or FALSE: Test and change your strategy often. Don’t be afraid to try solutions before you know that they are perfect.

a)

TRUE

b)

FALSE

99.

There will be ​ (a)   different sets of text that will appear in ​ (b)   different places.

Choose from the below words
two
three
one
100.

how we can move one step forward

a)
b)
c)
101.

Help the girl pick the corn. Which program is correct?

a)

b)

c)

102.

Help the girl pick the corn. Which program is correct?

a)

b)

c)

103.

Where will you click to debug a program. (Hint: run the commands step by step.)

104.

There us a bug in our program! We can debug the program if we add one more command. Which command must we add?

a)

b)

c)

105.

What is a variable?

a)

label containing number values only

b)

label for a piece of information used in a program

c)

another name for number values

d)

label of information only used in web design

106.

Variable names can be anything you want.

a)

True

b)

False

107.

Variable names should not be meaningful to the code.

a)

True

b)

False

108.

Which variable name does NOT follow the guidelines?

a)

1size

b)

whatstheY

c)

xposition

d)

eyesize

109.

Which variable name would make a good choice?

a)

one size

b)

whatstheY

c)

5eyes

d)

3total

110.

Which of the following could be used to name variables?

a)

1eyesize

b)

eye size

c)

eyeSize

111.

What is the variable in this code?

a)

ellipse

b)

background

c)

ForestGreen

d)

petalSize

112.

What is the value of the variable xPosition?

a)

100

b)

300

113.

What does CSS stand for?

a)

Cats Standing Still

b)

Cascading Style Sheets

c)

Coats Shapes Square

d)

Cute Style Sheets

114.

Where in the code do we go to  change the color in the h3 tag?

a)

color

b)

font-size

c)

h3

d)

<p>

115.

How can you make this heading larger?

a)

<h1>Dolphins</h1>

b)

<h6>Dolphins</h6>

c)

<h3>Dolphins</h3>

d)

<h4>Dolphins</h5>

116.

Why does the code sometimes turn pink?

a)

there is a bug that needs to be fixed

b)

pink means no problems keep going

c)

pink means there is a header

d)

pink means to put in a paragraph

117.

How can we fix this error in the code?

<h1>Styles of Dance</h3>

a)

<h1>Styles of Dance</h4>

b)

<h1>Styles of Dance</h1>

c)

<h1>Styles of Dance<br>

d)

<H1>Styles of Dance</H1>

118.

Type in how we can fix this code.

<h3>Ballet</h1>

4 lines
119.

Which tag represents an ordered list?

a)

<p>

b)

<body>

c)

<ol>

d)

<li>

120.

Which tag represents a list?

a)

<p>

b)

<body>

c)

<ol>

d)

<li>

121.

Is this HTML or CSS in the picture?

a)

CSS

b)

HTML

122.

Which part of this flower will come first?

a)

First part

b)

Second part

c)

Third part

123.

What is this place called?

a)

Workspace

b)

Instructions Area

c)

Lessons

124.

What is this place called?

a)

Instructions Area

b)

Workspace

c)

Lessons

125.

What should we do to solve this puzzle?

a)

Click the smiley

b)

Drag the smiley to the highlighted smiley

c)

Double - click the smiley

126.

What will this picture make?

a)

Dog

b)

Cat

c)

Horse

d)

Rabbit

127.

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

a)
b)
c)
128.
a)
b)
c)
129.

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

a)
b)
c)
130.

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

a)
b)
c)
d)
131.

which one is true?

a)
b)
c)
132.

What does this code do?

a)

Moves forward 1 time

b)

Moves forward forever

c)

Moves forward 5 times

133.

For this code, each sprout will collect either one corn or nothing.

What will the code of “check square for corn” function be?

a)

If there “is corn” do “pick corn”

b)

While there “is corn” do “pick corn”

c)

Pick corn

134.

When you run the code what will the harvest do?

a)

Collect all the lettuces

b)

Nothing

c)

Collect 2 lettuces

d)

Move around the square without collecting anything

135.

Find the correct code for the harvest to collect everything

a)

b)

136.

Select the problem that this code will solve.

a)
b)
c)
d)

All of these

e)

None of these

137.

Finding and fixing problems in an algorithm or program

a)

algrorithm

b)

bug

c)

debugging

d)

sequencing

138.

When you run the code what will the harvest do?

a)

Collect all the lettuces

b)

Nothing

c)

Collect 2 lettuces

d)

Move around the square without collecting anything

139.

When you run the code what will the harvest do?

a)

Collect all the lettuces

b)

Nothing

c)

Collect 2 lettuces

d)

Move around the square without collecting anything

140.

The sprouts in this puzzle will be either corn or lettuce.

Take a close look at the code provided. What will happen after you click "Run"?

a)

The harvester will collect all of the crops.

b)

The harvester will pick all of the crops, except the pumpkin.

c)

The harvester will not pick any of the crops with the path she is taking.

141.

For the following program, which value would you set gather to inside the loop?

a)
b)
c)
d)
142.

For the following program, which value would you set gather to inside the loop?

a)
b)
c)
d)
143.

What is a function?

a)

A FUN event you go to with your friends

b)

A piece of code that loops

c)

A piece of code you can call over and over again

d)

An extra piece of information you pass on to your program

144.

This code looks like it should be a function instead of loops because...

a)

there are too many things to pick

b)

there are both right and left turns, making the pattern not perfect

c)

the pumpkin isn't always at the corner

145.

If there were more than one corn in a square, would this code work?

a)

Yes, because it keeps on running until there is no path ahead

b)

No, because and if block is only read once, and then you move forward.

146.

Should this be a loop?

a)

No, because there is no pattern.

b)

Yes, because every middle square has honey or nectar.

147.

Select the correct solution.

a)
b)
c)
d)
148.

Which loop solution will solve the puzzle?

a)
b)
c)
d)
149.

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

a)

5

b)

7

c)

8

d)

6

150.

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)