Font size
WorksheetsCode.org Summative
Total questions: 25
Worksheet time: 50mins
Choose the definition that best describes a conditional.
The action of doing something over and over again.
A command that tells you to do something only up to the point that something becomes true.
A statement that a program checks to see if it is true or false.
Reusable group of instructions that reduce the complexity of writing and maintaining programs. These group of instructions can be used many time in a program.
Sequencing is a process in which you must work through the program step by step to find the error.
TRUE
FALSE
Which concept best fits the following definition:
A command that tells you to do something only up to the point that something becomes true.
Nested loop
If / Else statement
While loop
Until loop
Write a code to get Scrat to the acorn, using the 3 blocks in the image.
(NOTE: write the whole block and put a comma or space between each block with no capital.
Example: turn right, move forward, turn right
or turn right move forward turn right)
(a)
........................... and ........................... are all conditionals.
repeat loops
while loops
get nectar
if / else statements
pick corn
Choose the definition that best describes a loop.
A statement that a program checks to see if it is true or false.
The action of doing something over and over again.
Reusable group of instructions that reduce the complexity of writing and maintaining programs. These group of instructions can be used many times in a program.
A command that tells you to do something only up to the point that something becomes true.
Look at the code.
How many units of nectar will the bee collect at the end?
The bee will collect all of the nectars.
The bee will only collect 2 nectars.
The bee won't collect any nectar because the variable isn't called "gather".
"if" statements declare when a command should be run and what to run otherwise.
TRUE
FALSE
For the following program, which value would you set gather to inside the loop?
What shape will this code create.
Star
Square
Hexagon
Triangle
Window
What shape will this code create.
Star
Square
Hexagon
Triangle
Window
What shape will this code create.
Star
Square
Hexagon
Triangle
Window
What shape will this code create.
Star
Square
Hexagon
Triangle
Window
What shape will this code create.
Star
Square
Hexagon
Triangle
Window
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 the counter to count by to collect all nectars?
1
2
3
For the following program, which value would you set the counter to count by to collect all nectars?
1
2
3
Take a close look at the code provided. What will happen after you click "Run"?
The artist will draw a triangle with 50 pixel sides.
The artist will draw a 50-sided polygon with 3 pixel sides.
The artist will draw three open sides with 50 degree turns.
The computer will prompt the user for a number.
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
Find the best code for Elsa to create the snowflake in the image.
How many loops (repeat times) do we need to collect all the scrap metal?
3
4
5
Look carefully at the code below. What do you think will happen after you click "Run"? Remember: there will only ever be one honeycomb or one flower behind each cloud.
The bee will get nectar at each flower and make honey at each honeycomb.
The bee will try to get nectar from both flowers and honeycomb.
The bee will try to get honey from both flowers and honeycomb.
The bee will try to get honey and nectar from both flowers and honeycomb.
