NEW
Font size
WorksheetsPython - True or False?
Total questions: 14
Worksheet time: 5mins
What does this if statement evaluate to?
height = 148
if height > 120:
...
True
False
What does this if statement evaluate to?
height = 118
if height > 120:
...
True
False
What does this if statement evaluate to?
height = 120
if height > 120:
...
True
False
What does this if statement evaluate to?
message = "Hi"
if message != "hi":
...
True
False
What does this if statement evaluate to?
message = 'hello'
if message == "hello":
...
True
False
What does this if statement evaluate to?
points = 12
points += 5
if points >= "15":
...
True
False
What does this if statement evaluate to?
points = 12
points += 5
if points == 17:
...
True
False
What does this if statement evaluate to?
message = "Kia ora"
if message:
...
True
False
What does this if statement evaluate to?
discount = 10
if discount:
...
True
False
What does this if statement evaluate to?
username = ""
if username:
...
True
False
What does this if statement evaluate to?
points = 0
if points:
...
True
False
What does this if statement evaluate to?
username = " "
if username:
...
True
False
What does this if statement evaluate to?
username = "Michael"
age = 34
if username == "Michael" or age <= 20:
...
True
False
What does this if statement evaluate to?
username = "Michael"
age = 34
if username == "Michael" and age <= 20:
...
True
False
