NEW
Font size
WorksheetsCoding: Variables
Total questions: 12
Worksheet time: 12mins
For the following pseudocode:
takeoff;
if (Alexa said Hello),
I say "Stop Alexa"
else
I say "Hi Alexa"
If my Alexa says "Good Morning", what will I say?
Stop Alexa
Hi Alexa
Good Morning, Alexa
Nothing
For the following pseudocode:
set number to 2;
if (get number is 8)
flip forward;
else if (get number is 2)
flip right;
else
flip backwards;
What will my drone do?
flip backwards
flip forward
flip right
nothing
For the following pseudocode:
set number to 10;
if (get number is 8)
flip forward;
else if (get number is 2)
flip right;
else
flip backwards;
What will my drone do?
flip backwards
flip forward
flip right
nothing
For the following pseudocode:
set distance to 1;
go forward for (get distance) seconds;
change distance by 1;
go forward for (get distance) seconds;
change distance by -1;
What is my distance in the end?
1
2
3
4
For the following pseudocode:
set distance to 1;
go forward for (get distance) seconds;
change distance by 1;
go forward for (get distance) seconds;
change distance by -1;
What is my distance in the beginning?
1
2
3
4
A variable is used to...
tell if an expression is true or false
repeat the same instructions over and over again
store information to be referenced and used by programs
store information so that it is never used in the program
In the game of Pacman, what is an example of a variable?
Pacman
Lives
Time
All of the above
In Basketball, what are good variables?
Score
If the team wins
If the team loses
Whether the team listens to the coach
Code is...
when it's not warm.
the dog from Garfield.
a song or poem dedicated to someone.
specific instructions in a computer program.
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 letter or symbol to which a some value can be assigned.
Variable
Output
Bug
What is a condition?
JavaScript
Something that has to be true in order for an action to be carried out.
syntax
pseudocode
