NEW
Font size
WorksheetsVariables
Total questions: 24
Worksheet time: 12mins
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
Which of these could be a name assigned to a variable?
score
x
num1
answer
All of these
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
In the Python programming language, x -=1 is the same as...
1 - x
x is not a number and cannot be calculated
Syntax error
x = x -1
In the Python programming language, == does what...
Goes wrong
is even more equal than normal
Compares whatever is before it to whatever comes after it
symbolises a
bi-plane
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
It is logical to assign a variable a name that is related to the information that is stored in it; what name would you assign a variable for the information below...
'Harry'
brother
firstName
Harry
sandwich
The principle of Boolean Logic, where there are only two possible states or outcomes, bears his name of the mathematician George Boole. Which one of these is considered a Boolean variable...
score = 10
name = "Boole"
answer = num1 * num2
answerOne = False
In the Python programming language, x !=1 is the same as...
X is dissapointingly equal to 1
X does not equal 1
X is nearly equal to 1
X is upset with 1
A car park system might store a variable called...
spacesLeft
numberOfCars
lengthOfStay
pricePerHour
All of these are possible
A supermarket till system might store a variable called...
price
total
item
transactionNum
All of These
A game might store a variable called...
score
health
livesLeft
item
All of These
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
/
In BBC BASIC <> means the same as != in Python...
What does <> mean?
Not equal to
Chattering Crocs
Might be about (value)
Obstacle
What program also uses variables to make calculations or rules?
Microsoft Excel
Microsoft Word
Adobe Photoshop
Microsoft PowerPoint
Linking a Variable to a String Using a + operator is called
Linking
Sandwich
Concatenation
SUM
