Font size
WorksheetsCode.org Test 1
Total questions: 150
Worksheet time: 5hrs 59mins
Which block would you use to create a variable in a program on Code.org?
Which block would you use to replace the "?" in the code?
(click the picture to make it bigger)
What is the next block you would add to solve this puzzle?
Which block would you use to create a variable in a program on Code.org?
Which is the correct code for this puzzle?
Which is the correct way to shorten this code?
(click the picture to make it bigger)
What block would be the first step in creating a code that tells the artist to draw over the gray lines?
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?
Which block would you use to replace the "?" in the code?
(click the picture to make it bigger)
What is the next block you would add to solve this puzzle?
What number should replace the "?" in the code?
3
4
12
11
How many lines will the artist draw based on the code in the picture?
1
2
3
4
Which of these blocks is a loop structure?
The action of doing something over and over again.
Looping
Bugging
Programming
What is the action of doing something over and over again?
Repeat
Loop
Debugging
What does this code do? (a)
Which block would you use to create a variable in a program on Code.org?
Which block would you use to replace the "?" in the code?
(click the picture to make it bigger)
What is the next block you would add to solve this puzzle?
Which block would you use to create a variable in a program on Code.org?
Which is the correct code for this puzzle?
Which is the correct way to shorten this code?
(click the picture to make it bigger)
What block would be the first step in creating a code that tells the artist to draw over the gray lines?
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?
Which block would you use to replace the "?" in the code?
(click the picture to make it bigger)
What is the next block you would add to solve this puzzle?
What number should replace the "?" in the code?
3
4
12
11
How many lines will the artist draw based on the code in the picture?
1
2
3
4
Which of these blocks is a loop structure?
The action of doing something over and over again.
Looping
Bugging
Programming
What is the action of doing something over and over again?
Repeat
Loop
Debugging
What number will be output by the console.log command on line 7?
10
100
20
200
What text will be output by the program?
less than 10
less than 20
less than 30
30 or more
What will be the order of letters printed to the console when this program is run?
a b c
a b c b c b c
a b c b c
a b c a
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.
What will the value of the variable bags be at the end of the flowchart shown here?
1
2
3
4
Evaluate:
10 / 2 evaluates to
1
0.5
2
5
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
Count = 0
Count = 19
Count = 20
Count = Undefined
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)
true
false
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)
true
false
Define Algorithm
Define Bug
Define Debugging
Define Sequencing
What is a list of steps that you can follow to finish a task?
Code
Program
Algorithm
Define Program
Look at the program below. What will happen when you click "Run"?
The bird will get to the pig.
The bird will not reach the pig.
I don't know.
Define Conditionals
Is this solution correct?
Yes
No
How many many times will the "move forward" command execute in this code?
12
8
3
4
What is an Algorithm?
An algorithm that has been coded into something that can be run by a machine.
An alligator who plays the drums.
2+4x6-1
A list of steps to finish a task.
What is a program?
An algorithm that has been coded into something that can be run by a machine.
A professional grandma.
A list of steps to finish a task.
A musical performance.
Which of these robots uses many programs to perform actions like opening a jar, walking up stairs, and playing soccer?
What is a "Bug"?
An insect with 8 legs.
Part of a program that does not work correctly.
The action of doing something over and over again.
Someone who bothers you.
What is a loop?
Finding and fixing problems in an algorithm or program.
A fruity breakfast cereal.
The action of doing something over and over again.
A rope.
What is the best way to solve this Angry Birds Puzzle?
What will happen when I hit run on this code?
The bird will reach the pig.
The bird will not reach the pig, or hit a wall.
The bird will hit the wall before he reaches the pig.
The bird will do nothing.
What is "Debugging"?
Finding and fixing problems in an algorithm or program.
Squishing a bunch of insects.
Taking the CPU out of your device.
Part of a program that does not work correctly.
What is the best way to solve this puzzle?
Solve this puzzle by adding one block at the end.
Which word means to fix a mistake in the code?
Sequence
Binary
Loop
Debug
Sequencing helps the reader.......
read.
do math.
do writing.
understand the order of events in a story.
What are some clue words for sequencing?
as a result of, therefore
first, next, then, finally
main idea, details
summarize, re-read
A part of the program that does not work correctly.
Bug
Break
Loop
Trying again and again, even when something is very hard.
persistence
algorithm
computational thinking
loop
What is a list of steps that you can follow to finish a task?
Code
Program
Algorithm
What is debugging?
taking an insect out the computer
fixing a program in an algorithm
breaking down a problem
Solve the puzzle
Solve the Puzzle
What is a sprite?
A delicious lemon-lime soda.
An action that something performs continuously until it’s told to stop.
A graphic on the screen with a location, size, and appearance.
A small, magical, fairy-like creature.
What is a behavior?
An action that a sprite performs continuously until it’s told to stop.
When you act a certain way that gets you in trouble.
Solving an error in a line of code.
A graphic on the screen with a location, size, and appearance.
What do you think will happen when you run this code?
Nothing will happen.
The tumbleweed will move up and down.
The tumbleweed will explode.
The tumbleweed will perform the "tumbling" behavior.
Which of these blocks is a Behavior block?
Which of these blocks would let you add a new sprite to your program?
What is an event?
Something on your calendar that you've been preparing for for weeks!
An evil tent.
An action that causes something to happen.
A big party.
Which of these behavior blocks would make your sprite spin around?
Which event would allow me to program certain actions to the press of a button?
Which event would allow me to program certain actions to when a sprite is clicked?
What will happen when I click run on this program?
None of the aliens will begin their behaviors.
The aliens will all begin their behaviors, and when the blue and yellow aliens touch, the bell will stop everything.
The aliens will all begin their behaviors, and when the blue and pink aliens touch, the blue alien will switch from jittering to shrinking
The aliens will all begin their behaviors, and when the blue and the pink aliens touch, all of them will stop everything.
how we can make the game work
Move forward
click RUN
I don't know
Nothing
how we can move one step forward
Debugging means Fix The Problem
True
False
Solve this puzzle
Algorithm
Putting commands in correct order so computers can read the commands.
Finding and fixing problems in your algorithm or program.
An action that causes something to happen.
a step-by-step procedure for solving a problem
Bug
Part of a program that does not work correctly.
An algorithm that has been coded into something that can be run by a machine.
The art of creating a program.
An action that causes something to happen.
Which code will get the Angry Bird to the Pig?
What is wrong with the code to get Scrat to the acorn?
The first "move forward" is not needed.
The first "turn right" should be a "turn left"
The second "move forward" is extra
The last "turn right" should be a "turn left"
A part of the program that does not work correctly.
Bug
Break
Loop
The action of doing something over and over again.
Looping
Bugging
Programming
What does this code do?
Moves forward 1 time
Moves forward forever
Moves forward 5 times
Moves left
Which of the code below will complete this puzzle?
How long are the sides of this shape?
2 pixels
120 pixels
150 pixels
Purple pixels
The language that programmers create and use to tell a computer what to do
Code
Command
Run Program
BINARY
A block is
an instruction in a coding program that can be joined to other blocks to build code
visual elements on a screen that are not text, such as pictures, icons and symbols
something a computer program can react to, such as a key being pressed or mouse being clicked
place to store data that can change in a program
Coding can be used to
Program robots
Create websites, games & apps
Tell computers what to do
All of the above
How many times will the bee collect nectar if it follows the entire path?
5
7
8
6
TRUE or FALSE: Test and change your strategy often. Don’t be afraid to try solutions before you know that they are perfect.
TRUE
FALSE
There will be (a) different sets of text that will appear in (b) different places.
how we can move one step forward
Help the girl pick the corn. Which program is correct?
Help the girl pick the corn. Which program is correct?
Where will you click to debug a program. (Hint: run the commands step by step.)
There us a bug in our program! We can debug the program if we add one more command. Which command must we add?
What is a variable?
label containing number values only
label for a piece of information used in a program
another name for number values
label of information only used in web design
Variable names can be anything you want.
True
False
Variable names should not be meaningful to the code.
True
False
Which variable name does NOT follow the guidelines?
1size
whatstheY
xposition
eyesize
Which variable name would make a good choice?
one size
whatstheY
5eyes
3total
Which of the following could be used to name variables?
1eyesize
eye size
eyeSize
What is the variable in this code?
ellipse
background
ForestGreen
petalSize
What is the value of the variable xPosition?
100
300
What does CSS stand for?
Cats Standing Still
Cascading Style Sheets
Coats Shapes Square
Cute Style Sheets
Where in the code do we go to change the color in the h3 tag?
color
font-size
h3
<p>
How can you make this heading larger?
<h1>Dolphins</h1>
<h6>Dolphins</h6>
<h3>Dolphins</h3>
<h4>Dolphins</h5>
Why does the code sometimes turn pink?
there is a bug that needs to be fixed
pink means no problems keep going
pink means there is a header
pink means to put in a paragraph
How can we fix this error in the code?
<h1>Styles of Dance</h3>
<h1>Styles of Dance</h4>
<h1>Styles of Dance</h1>
<h1>Styles of Dance<br>
<H1>Styles of Dance</H1>
Type in how we can fix this code.
<h3>Ballet</h1>
Which tag represents an ordered list?
<p>
<body>
<ol>
<li>
Which tag represents a list?
<p>
<body>
<ol>
<li>
Is this HTML or CSS in the picture?
CSS
HTML
Which part of this flower will come first?
First part
Second part
Third part
What is this place called?
Workspace
Instructions Area
Lessons
What is this place called?
Instructions Area
Workspace
Lessons
What should we do to solve this puzzle?
Click the smiley
Drag the smiley to the highlighted smiley
Double - click the smiley
What will this picture make?
Dog
Cat
Horse
Rabbit
How did the squirrel get the acorn? (simple way)
What do you need to do to get Squirell to the acorn?
Move around the broken ice to get Squirrel to the acorn.
which one is true?
What does this code do?
Moves forward 1 time
Moves forward forever
Moves forward 5 times
For this code, each sprout will collect either one corn or nothing.
What will the code of “check square for corn” function be?
If there “is corn” do “pick corn”
While there “is corn” do “pick corn”
Pick corn
When you run the code what will the harvest do?
Collect all the lettuces
Nothing
Collect 2 lettuces
Move around the square without collecting anything
Find the correct code for the harvest to collect everything
Select the problem that this code will solve.
All of these
None of these
Finding and fixing problems in an algorithm or program
algrorithm
bug
debugging
sequencing
When you run the code what will the harvest do?
Collect all the lettuces
Nothing
Collect 2 lettuces
Move around the square without collecting anything
When you run the code what will the harvest do?
Collect all the lettuces
Nothing
Collect 2 lettuces
Move around the square without collecting anything
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"?
The harvester will collect all of the crops.
The harvester will pick all of the crops, except the pumpkin.
The harvester will not pick any of the crops with the path she is taking.
For the following program, which value would you set gather to inside the loop?
For the following program, which value would you set gather to inside the loop?
What is a function?
A FUN event you go to with your friends
A piece of code that loops
A piece of code you can call over and over again
An extra piece of information you pass on to your program
This code looks like it should be a function instead of loops because...
there are too many things to pick
there are both right and left turns, making the pattern not perfect
the pumpkin isn't always at the corner
If there were more than one corn in a square, would this code work?
Yes, because it keeps on running until there is no path ahead
No, because and if block is only read once, and then you move forward.
Should this be a loop?
No, because there is no pattern.
Yes, because every middle square has honey or nectar.
Select the correct solution.
Which loop solution will solve the puzzle?
How many times will the bee collect nectar if it follows the entire path?
5
7
8
6
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.
