WorksheetsApp Creator Pre-Test
Total questions: 50
Worksheet time: 47mins
What is an ordered set of instructions used to carry out a task?
A conditional statement
A bug
An algorithm
steps
___________ is a command that performs different actions depending on whether a condition is true or false
Interface
Algorithm
Conditional Statement
Event Handler
When you tell the computer to repeat a command or step over and over and over and over and over and over and over and over and over and... oh yeah, over again as many times as you tell to repeat.
Deja Vu
Loop
Repeating
Being annoying
A piece of code with multiple steps that have been simplified down to one command which you can easily call over and over again.
digital footprint
run program
abstraction
function
The order of commands carried out by a computer exactly as they are written to run properly is called a
Sequence
Bugs
Syntax
Debugging
A loop that continues to repeat while a condition is true.
while loop
until loop
for loop
bug
To add code in a function so the program knows what to do when the function is called.
define function
call function
variable
pattern matching
A placeholder for a piece of information that can change.
variable
call function
event
bug
Select the correct solution.
Can this code be written better?
Yes, by using loops (repeat blocks)
No, this is the best way to right this code
What shape does this code make?
Rectangle
Triangle
Square
Circle
Look at the puzzle and the code below. How would you debug 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
Look at the puzzle. How would you debug 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
There are many possible ways to interpret an instruction written in a programming language.
True
False
Two functions in a single program can have different names but contain identical code.
True
False
Finding and fixing problems in an algorithm or program.
Debugging
Bug
Error
Programing
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
What does this code do?
Moves forward 1 time
Moves forward forever
Moves forward 5 times
Moves left
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
Which algorithm below will allow the Farmer to clear the pile?
Move forward twice, remove dirt 10 times
Move forward once, remove dirt 5 times
Move forward once, remove dirt 10 times
Remove dirt 10 time, move backwards once
The following code is drawing shapes. When the program runs, what shapes and how many of the shape will be drawn?
One square
Triangle
Two squares
Two triangles
What completes the following shape?
Move forward by 100px, turn right by 120dg, move forward by 100px
Turn right by 120dg, move forward by 100px, Move forward by 100px,
Turn right by 120dg, turn right by 120px, move forward by 100px
Move forward by 100px, move forward by 100px, turn right by 120dg, move forward by 100px
What Does Pixel Stand for?
Image
Plain Element
Picture Element
Picture/Images X-element Language
Which of these blocks creates a loop?
When deciding which way to code the sprite,
remember, it's the the way the sprite is facing that determines the direction to choose.
remember it's the same as the way you are facing that determines the direction to choose.
The main purpose of a variable, is (choose all answers that apply)
So you can draw circles and change colors.
To have to enter code into the variable and then it will be throughout your program wherever you put the variable.
So you don't have to change maybe hundreds of pieces of code, you can do it with only one change in the variable
To help you find sprites.
Every time you run the program the color changes
The common programming structure that implements "conditional statements"
Bug
Debugging
If-Statement
Turn Left
Forward
Forward
Forward
Forward
Forward
Turn right
Forward
Forward
Turn Left
Forward
Turn Right
Forward
Forward
Turn Left
Forward
Forward
Turn Right
Forward
Turn Left
Forward
Forward
Forward
Turn Right
Turn Left 90º
Forward
Turn Left 90º
Forward
Forward
Turn Right 120º
Forward
Turn Right 120º
Forward
Turn Right 120º
Forward
Turn Right 90º
Forward
Turn Right 90º
Forward
Turn Right 90º
Move forward
Turn Right 90º
Move Forward
Turn Right 90º
Move Forward
Turn Left 90º
Move Forward
Turn Left 90º
Move Forward
Turn Left 120º
Move Forward
Turn Left 90º
Move Forward
Move Forward
Move Forward
Move Forward
Move Forward
Move Forward
Turn Right 90º
How many times will the bee collect nectar?
5
7
8
6
What will happen when you click run?
The bird will run into TNT.
The bird will end up 1 step short of the pig.
The bird will make it to the pig.
What will be drawn when you click "Run"?
a square
a single line
an equilateral triangle
What will happen when you press "Run"?
BB-8 will not move forward.
BB-8 will move forward and collect all the scrap metal.
BB-8 will only move forward 1 space.
How many times will BB-8 need to move forward to collect all the scrap metal?
3
4
5
BB-8 will move forward enough spaces to collect all the space junk.
True
False
Looking at the puzzle, what happens when the program runs?
Option A
Option B
Option C
Option D
Option A
Option B
Option C
Option D
