Introduction to Python - If and Else

Quiz
•
Computers
•
1st - 6th Grade
•
Easy
Khadeeja Haji
Used 23+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does this print?
if 5 > 7:
print("Hello!")
else:
print("Bye")
Hello
Bye
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is this true or false?
6 > 8
True
False
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does this print?
if 5 == 5:
print("Right")
else:
print("Wrong")
Right
Wrong
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this print?
if 6 != 6:
print("hi")
else:
print("hello")
hello
hi
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True or False?
7 <= 8
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this code output?
x = True
print(not x)
False
True
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What does this output?
x = True
y = False
print(x and y)
False
True
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Python Print Statement

Quiz
•
6th - 10th Grade
10 questions
Python - Operators and Conditional Statement

Quiz
•
3rd - 10th Grade
15 questions
Python basics

Quiz
•
6th - 8th Grade
11 questions
Python L4 Math Operator

Quiz
•
6th - 8th Grade
15 questions
Programming - Screening Test

Quiz
•
3rd Grade - Professio...
10 questions
Yr 7 Flowgorithm

Quiz
•
3rd Grade
15 questions
Python Quiz

Quiz
•
3rd - 4th Grade
12 questions
Grade 3 ICT Parts of computer and Hardware &Software

Quiz
•
3rd Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
13 questions
Primary and Secondary Sources

Quiz
•
6th Grade
15 questions
Decimal Operations

Quiz
•
6th Grade
10 questions
Common Denominators

Quiz
•
5th Grade