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
12 questions
Class-2 Ch-3
Quiz
•
2nd Grade
15 questions
Grade 4 Input and Output Devices
Quiz
•
4th Grade
12 questions
Grade 3 ICT Parts of computer and Hardware &Software
Quiz
•
3rd Grade
8 questions
Roblox Lua Scripting Quiz
Quiz
•
1st - 12th Grade
15 questions
Parts of Computer
Quiz
•
1st - 2nd Grade
10 questions
Programming Fundamentals
Quiz
•
6th Grade
10 questions
Introduction to Python - Loops and Logic
Quiz
•
1st - 6th Grade
15 questions
Selection in Python
Quiz
•
1st - 9th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
20 questions
Final Exam Vocabulary
Quiz
•
6th Grade
11 questions
Decimal/fraction conversions quick check
Quiz
•
5th - 7th Grade
10 questions
Identifying equations
Quiz
•
KG - University