NEW
Font size
WorksheetsAdventure Game
Total questions: 31
Worksheet time: 15mins
A Variable is like a...
Car
Horse
Container
Hammer
A String is a type of variable; What could it contain?
String
Selotape
Only Numbers
Letters and numbers
One type of variable data that we studied was a string- What was the other data type that we looked at?
Integer or Number
Straw
300
x
which of these is most typically a variable in a game?
Sandwich
Number of Lives
Foot
Input
The word 'variable' is from the late Latin word variabilis.
What does it mean?
Feret
Stays the same
Changeable
unreliable
Here is a calculation using a variable -
score = score + 10
What happens in this statement?
The score takes off 10
Whatever score is, 10 will be added.
West Ham win
score cannot equal score + 10
Which of these calculations can be used to count down the number of questions that a quiz program has asked?
questionsLeft = questionsLeft -1
questionsLeft =0
questionsLeft = questionsLeft +1
questionsLeft = kettle
Look at the diagram and state in which area variables are used...
Output
Processing
Input
Storage
Look at the picture and state which code properly represents the variable...
0 IS SCOREBOX
Box of Zero Score
SCORE = 0
0 = SCORE
Which operator shows that the variable called score is greater than or equal to 100
score >= 100
score <=100
score = 100
score = score
Which operator means to multiply in programming?
+
*
x
/
Which operator means to divide in programming?
÷
*
x
/
What program also uses variables to make calculations or rules?
Microsoft Excel
Microsoft Word
Adobe Photoshop
Microsoft PowerPoint
Loop
Loops that have a predetermined beginning, end, and increment (step interval).
The action of doing something over and over again.
A description of the behavior of a command, function, library, API, etc.
To repeat in order to achieve, or get closer to, a desired goal.
Specific instructions given to a computer.
output
list
rules
command
What completes the following shape?
Move forward by 100px, turn right by 120px, move forward by 100px
Turn right by 120px, move forward by 100px, Move forward by 100px,
Turn right by 120px, turn right by 120px, move forward by 100px
Move forward by 100px, move forward by 100px, turn right by 120px, move forward by 100px
distanceToSchool = 10
What is the value of the variable?
1. Grip cap with index finger and thumb
2. Remove cap
3. Twist counter-clock-wise until seal is broken
