Font size
WorksheetsY7 Programming Test - code.org
Total questions: 100
Worksheet time: 5hrs 40mins
Now use the REPEAT block! Repeat HOW MANY TIMES?
Now use the REPEAT!
Which is BETTER?
Which SOLUTION goes with the code?
Pick the BEST code for the farmer to collect all of the corn.
Solve this puzzle
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
Finding and fixing errors in a program.
debugging
bug
nested loop
event
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 shape does this code make?
Rectangle
Triangle
Square
Circle
Can this code be written better?
Yes, by using loops (repeat blocks)
No, this is the best way to right this code
statements that only run under certain conditions
conditionals
paramenter
reflect
variable
A list of steps to finish a task.
Algorithm
Program
Bug
What is an algorithm?
a list of shopping items you need
a list of tech items you want
a list of steps to complete a task
Look at the puzzle. What can you fix in the code so the bird will make it to the pig?
Change the first turn block to left
Remove a move forward block
Add a move forward block
Change the second turn block to left
Is there more than one way to code a puzzle?
No
No, but you can make up your own design
Yes
Yes, but it will be counted wrong
If you weren't able to complete a challenge the first time you should
pout
give up
try again
bang on the keyboard
What does this code do?
Moves forward, turns, moves forward
Moves forward 2 times, turns left, moves forward 2 more times
Moves forward 4 times and turns left
Moves and turns
A ____ lets us repeat something over and over again.
program
loop
command
Find the loop block.
How many times does this loop repeat?
4
5
6
Which program is the same as the picture?
What will happen when you click Run?
The squirrel will get the nut.
The squirrel will stop before the nut.
The squirrel will fall in the water.
Will the squirrel get the nut?
Yes
No
Which program is the same?
Which program will help the artist finish the drawing?
Which program will help the artist finish the drawing?
Which program will help the artist finish the drawing?
Which program will help the artist finish the drawing?
Which of these blocks is a loop structure?
How many lines will the artist draw based on the code in the picture?
1
2
3
4
What number should replace the "?" in the code?
3
4
12
11
What is the next block you would add to solve this puzzle?
Which block would you use to replace the "?" in the code?
(click the picture to make it bigger)
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?
What block would be the first step in creating a code that tells the artist to draw over the gray lines?
Which is the correct way to shorten this code?
(click the picture to make it bigger)
Which is the correct code for this puzzle?
Which block would you use to create a variable in a program on Code.org?
What is the next block you would add to solve this puzzle?
Which block would you use to replace the "?" in the code?
(click the picture to make it bigger)
Which block would you use to create a variable in a program on Code.org?
Which code will get the Angry Bird to the Pig?
Which of the code below will complete this puzzle?
What needs to be changed to fix the program?
repeat 3
turn right
repeat 5
repeat 4
turn left
repeat 5
repeat 3
turn right
repeat 4
repeat 4
turn right
repeat 5
What needs to be changed to fix the program?
repeat 5
repeat 4
repeat 5
repeat 4
repeat 4
repeat 4
repeat 5
repeat 4
repeat 4
repeat 4
repeat 5
repeat 4
What is a conditional loop?
A loop that repeats the code inside a set number of times
A loop that repeats the code forever
A loop that repeats until a condition is true
A loop that repeats the code once
What is a fixed loop?
A loop that repeats the code inside a set number of times
A loop that repeats the code forever
A loop that repeats the code 10 times
A loop that repeats the code once
What needs to be changes for the bee to collect the nectar from the flowers?
repeat 6
move forward
if at flower
do make honey
else get nectar
repeat 7
move forward
if at flower
do get nectar
else make honey
repeat 7
move forward
if at flower
do make honey
else get nectar
repeat 6
move forward
if at flower
do get nectar
else make honey
What two errors need to be changed to fix the code?
repeat 3 times
change turn right to left
repeat 4 times
add move forward before turn right
repeat 3 times
swap remove1 and turn right
repeat 4 times
change turn right to left
How many times will Elsa of Arendelle need to repeat the code?
5 times
4 times
6 times
3 times
The sheep-shearer must get next to the sheep to shear them. How will he do this?
Move forward
Move forward
Shear
Turn left
Move forward
Shear
Move forward
Shear
Turn left
Move forward
Move forward
Shear
Move forward
Move forward
Shear
Turn right
Move forward
Shear
Move forward
Move forward
Turn left
Shear
Move forward
Shear
How many time should the code repeat for BB-8 to collect all the scrap?
8 times
4 times
5 times
6 times
Look at the code carefully. What do you think will happen when the code is run?
Laurel will collect 4 pieces of treasure using this code.
Laurel will try to collect treasure where there is not any and it causes an error.
Laurel will collect all of the treasure.
I don't know.
Look carefully at the code. What will happen when the code is run?
The Artist will draw a triangle with 3 equal sides
The Artist will draw a single line
The Artist will draw a square
I don't know
Which of the following examples IS NOT an example of a conditional?
Which of the for loops is set up correctly to complete this maze?
figure out the details of the problems that you are trying to solve
reflect
variable
debugging
define
a placeholder for a piece of information that can change
variable
for loop
define
parameter
a named group of programming instructions. They are reusable abstractions that reduce the complexity of writing and maintaining programs.
for loop
while loop
function
condition
the art of creating a program
program
debugging
paramenter
programming
A statement that a program checks to see if it is true or false. If true, an action is taken. Otherwise, the actions is ignored.
condition
while loop
conditionals
function
carefully think back on something with the intention of improvising the outcome in the future
program
define
repeat
reflect
attempt to do something
program
bug
loop
try
research, plan, and acquire materials from the activity you are about to do
for loop
reflect
define
prepare
the action of doing something over and over again
for loop
while loop
bug
loop
an extra piece of information passed to a function to customize it for a specific need
programming
while loop
variable
paramenter
do something again
reflect
program
repeat
define
finding and fixing problems in an algorithm or program
bug
conditionals
variable
debugging
loops that have a predetermined beginning, end, and increment (step interval)
variable
for loop
program
while loop
a programming construct used to repeat a set of commands as long as a condition is true
condition
for loop
variable
while loop
an action that causes something to happen
loop
define
event
conditionals
part of a program that does not work correctly
bug
variable
debugging
try
an algorithm that has been coded into something that can be run be a machine
parsnip
parameter
program
conditionals
statements that only run under certain conditions
conditionals
paramenter
reflect
variable
What is computational thinking?
Thinking like a computer.
Techniques used to solve problems.
Computer programming
