Font size
WorksheetsLesson 3 - Using Variables
Total questions: 11
Worksheet time: 6mins
What is a Variable in programming?
A name given to data that is stored
Something that changes
Something that stays the same
x
What is a string?
Pictures
A shape
Words
The name for the lines that Turtle draws
x = 30
2x = ?
15
30
60
xx
henry = 50
3henry = ?
50
100
150
henryhenryhenry
dog = “woof”
2dog = ?
dogdog
woofwoof
"woofwoof"
woof2
What is wrong with the code below?
colour = input(“What is your favourite colour?”)
Colour should be spelt color
Doesn't need brackets
Doesn't need speech marks
Nothing is wrong with this code
What is an input used for?
Words
Numbers
Decimals
All of the above
What is an integer used for?
Words
Numbers
Decimals
All of the above
What does the code 'int' mean?
integral
integer
international
into
Is int needed in this code below?
sides = int(input(“How many sides would you like?”))
Yes
No
Maybe
Sometimes
What is wrong with the following code?
sides = integer input(How many sides would you like?)
No speech marks
integer
Needs brackets
Nothing is wrong with this code
