Font size
WorksheetsCode.org - 70 Questions
Total questions: 70
Worksheet time: 36mins
An extra piece of information passed to a function to customize it for a specific need
Bug
Algorithm
Parameter
Program
A graphic character on the screen with properties that describe its location, movement, and look.
Debugging
Bug
Variable
Sprite
A placeholder for a piece of information that can change.
Debugging
Sprite
Variable
Parameter
A Function will...
make and name a variable
Let you write code that can be stored and used a number of times.
allow you to move the sprite any way it would like
write your code for you
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"
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
How many times will the bee collect nectar if it follows the entire path?
5
7
8
6
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.
What is wrong with this code block?
It should say YELLOW in caps.
It should say "yellow" in quotes.
There is no fill code block in Game Lab.
Yellow is not a color recognized by name.
Solve the puzzle
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"?
The bee will move to the cloud and try to get nectar, no matter what.
The bee will move to the cloud and only try to get nectar if there is a flower underneath.
The bee will move to the cloud and then do nothing, no matter what.
The bee will not reach the cloud.
Which of these problems will this code solve?
All of these
None of these
Which of these are conditionals? (They only run under certain conditions). Select all that apply.
All of these
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.
None of these
Which of these describes the block shown?
When something happens, start this algorithm.
If the statement is true do this code.
If the condition is true do this code. If the statement is false, do something else.
Repeat this code a certain number of times.
All of these
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
What coding language is used in Code.org App Lab?
JavaScript
HTML
Logo
Select the correct code.
A
B
C
Which line of code produces the message?
1
2
3
Does the code match the app screenshot?
Yes
No
Does the code match the app screenshot?
Yes
No
Does the code match the app screenshot?
Yes
No
Does the code match the app screenshot?
Yes
No
Which object is the code being applied to?
A
B
C
Do the properties match the app screenshot?
Yes
No
How many screens does the app included.
10
11
12
What happens when the user clicks the right button?
The left screen loads and a sound plays.
The right screen loads.
The right screen loads and a sound plays.
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 the best way to solve this puzzle?
What is the name of the sprite variable in the code pictured? (Click on picture to enlarge.)
fly
ladybug
bug
space
What keyboard key do you need press to move the sprite?
x
y
up arrow
space
Which direction will the sprite move in the code pictured? (Click on picture to enlarge.)
Left
Right
Up
Down
The code in the image is an example of
an IF Statement
a DrawLoop
the counter pattern
reducing the size of a sprite
Which line of code creates a sprite?
Line 1
Line 2
Line 8
Line 9
What is the best option to solve this artist puzzle?
What code causes the output shown after 4 measures?
Look at the puzzle and the code below. What can you fix in the code to help the bird get to the pig?
Remove a move forward block
Add a move forward block
Change the first turn block to left
Change the second turn block to left
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"
Which choice best explains this code?
The character will move forward if there is a path ahead and turn right if there is no path ahead.
The character will turn right if there is a path ahead and move forward if there is no path ahead.
The character will turn right if there is a path ahead and turn left if there is no path ahead.
What is the 4-bit binary number for decimal 13?
1110
1111
1101
1011
True or false: You cannot count as high using binary numbers as you can with decimal numbers.
True
False
Which is the best definition for "bit?"
A set of rules governing the exchange or transmission of data between devices.
Transmission capacity measured by bit rate.
A single unit of information in a computer, typically represented as 1 or 0.
Time it takes for a bit to travel from its sender to its receiver.
The number of bits that are conveyed or processed per unit of time, for example, bits/second.
Which is the best definition for "latency?"
A set of rules governing the exchange or transmission of data between devices.
Transmission capacity measured by bit rate.
A single unit of information in a computer, typically represented as 1 or 0.
Time it takes for a bit to travel from its sender to its receiver.
The number of bits that are conveyed or processed per unit of time, for example, bits/second.
Which is the best definition for "bit rate?"
A set of rules governing the exchange or transmission of data between devices.
Transmission capacity measured by bit rate.
A single unit of information in a computer, typically represented as 1 or 0.
Time it takes for a bit to travel from its sender to its receiver.
The number of bits that are conveyed or processed per unit of time, for example, bits/second.
In the mid 40's, ENIAC was built by:
America
Germany
Japan
France
Personal Computers (PCs) became accessible in:
1960s
1970s
1980s
1990s
Graphic User Interface (GUI) made computers more user-friendly because:
they became faster.
they became smaller.
they used icons instead of commands.
they used a mouse.
What will the console log say when this program is run?
"Starting my program!"
"You clicked the button!"
"Ending my program!"
"Starting my program!"
"Ending my program!"
"You clicked the button!"
"You clicked the button!"
"Starting my program!"
"Ending my program!"
"You clicked the button!"
"Ending my program!"
"Starting my program!"
After the program is run, what will the text color of smallButton be?
red
blue
green
yellow
If the user clicks the button, what color will "topButton" be when the program finishes running?
red
green
blue
orange
When this program is run, the user clicks "topButton" then "bottomButton" and then "topButton" again. What will be displayed in the console?
aaa
bbb
ccc
aaa
aaa
ccc
bbb
aaa
ccc
aaa
bbb
aaa
aaa
bbb
aaa
ccc
What is a reason to include comments in a program?
Comments tell the computer what the code is doing.
Comments tell the programmer what the code is doing.
Comments help the user work an app more effectively.
Comments will show up in the console so when the program is run, the programmer know what happens.
The car goes right.
and is speeding up.
The car goes right.
and is slowing down.
The car goes right, slows down and then goes backward.
The car goes right, slows down and then stops.
The car goes left, slows down and stops.
The car goes right, slows down and stops.
The car goes down, slows down and stops.
The car goes up, slows down and stops.
A Theme that is repeated many times.
Programming
Repeat
Pattern
Statements that can only run under certain conditions or situations such as: if the seat is taken, then move to the next available seat.
conditionals (if/then statements)
variable
abstractions
binary
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
Does Code.org supports minecraft adventurer?
True
False
None of above
What is the expected outcome of the following code?
nothing is shown, there are no sprites
the background is white and we can't see anything because the textsize is 0;
the background is white, the counter text increases in size as the counter variable increases.
the background is white, and we see a number that goes up but the textsize stays the same.
An algorithm that has been coded into something that can be run by a machine.
program
computer
spanish
sleep
Which of the following would be a well-named function IF we are following all important naming conventions?
#drawStar()
Drawstar()
DrawStar()
drawStar()
What would you use to replace the "?" in the code?
(click the picture to make it bigger)
length
60
counter
3
