Worksheets2 Python Variables
Total questions: 10
Worksheet time: 5mins
What will this print to the screen?
print(2*4)
2*4
8
4
error
Which is the python logo?
Top left
Bottom left
Top right
Bottom right
What do we use variables for?
To store data
Print data
Produce functions
To get the users input what function do we use?
input
input<>
input()
INPUT()
What does int() represent?
internet
integer
intel
input
Choose what / performs.
multiply
add
subtract
divide
Why would I get a syntax error?
Line 1 doesn't make sense
Line 2 needs to be indented
No need for quotation marks on line 2
No such thing as an if statement
What would be printed to the screen for print(z)?
Orange
Banana
Cherry
Hello World!
What will be printed to the screen?
5
10
5 + 10
15
What will be printed to the screen?
5 + John
Syntax error - you cannot add str and int together
John
JohnJohnJohnJohnJohn
