What does this print?
if 5 > 7:
print("Hello!")
else:
print("Bye")
Introduction to Python - If and Else
Quiz
•
Computers
•
1st - 6th Grade
•
Easy
Khadeeja Haji
Used 21+ 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
15 questions
Python Quiz
Quiz
•
3rd - 4th Grade
12 questions
Grade 3 ICT Parts of computer and Hardware &Software
Quiz
•
3rd Grade
12 questions
Python Print Statement
Quiz
•
6th - 10th Grade
10 questions
Python - Operators and Conditional Statement
Quiz
•
3rd - 10th Grade
13 questions
Chapter 1: Data Science
Quiz
•
4th Grade
15 questions
Python basics
Quiz
•
6th - 8th Grade
11 questions
Python L4 Math Operator
Quiz
•
6th - 8th Grade
10 questions
Programming in QBasic
Quiz
•
6th Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
12 questions
Dividing Fractions
Quiz
•
6th Grade
9 questions
1. Types of Energy
Quiz
•
6th Grade