WorksheetsPython
Total questions: 5
Worksheet time: 3mins
Name
Class
Date
1.
If you want more than one option for your code, what do you use ( after if )?
a)
else
b)
elif
c)
ifif
2.
What is a variable?
a)
A box(memory location) where you store values
b)
a type of graphics
c)
Data type
3.
This operator means that one value is the same as the other value
a)
!=
b)
==
c)
>
4.
The result of this program:
Friday = False
if Friday:
print "watching TV !"
else:
print "shopping day!"
a)
watching TV
b)
shopping day
5.
What does an IF statement do?
a)
Closes the program
b)
Makes a decision
c)
Asks a question
100 %
