NEW
Font size
WorksheetsPython Revision P1
Total questions: 15
Worksheet time: 8mins
What is the output of this line?
print("12*3")
121212
15
36
12*3
What would the data type be for this number?
8,405,334
integer
float
boolean
string
Why won't this work?
x = int(input("Enter a Number"))
print(X)
Brackets are in the wrong place
both x variables should be lower case
It should have two equals
Print should have a capital P
Why is it important that was use comments in our code?
To help other people understand what is going on in our code
They help the program run smoothly
To add more colours into our code
So that when we come back to the code we can understand what it is doing
What do we use to store a piece of data?
keyword
constant
data
variable
What characters are used to check if two values are the same?
!=
==
equals
=
What variable is using a string to store data?
area
length
user_input
perimeter
Where does a function go in the program?
bottom
top
middle
at the end
What MMC school value is caring for others?
Manaaki
Ngākau Tapatahi
Aroha
Ako
What symbol do you use to make a comment in Python?
!--
@comment
#
==
What will be the output?
name = 'Dave'
print (name)
name
Dave
dave
nothing
What data type is used for a decimal number?
float
int
boolean
string
What is the Python code needed to ask a user for input?
name == input("what is your name?")
name =
(input)=what is your name?
name = input("what is your name?")
name = input=what is your name?
What day is Rāpare?
Monday
Friday
Thursday
Sunday
If keep_going equals 5 what will happen?
Syntax error
Choose a shape.... etc will appear
The program will keep going
The program has ended will display
