
Python Conditional Statements Quiz
Quiz
•
Information Technology (IT)
•
7th Grade
•
Practice Problem
•
Easy
Fadi Fadi
Used 2+ times
FREE Resource
Enhance your content in a minute
36 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output? python Copy Edit x = 5 if x > 3: print("Yes") else: print("No")
Error
5
No
Yes
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is the correct way to write an if statement?
if > x 10:
if x > 10 then
if x > 10:
if (x > 10)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this code print? python Copy Edit age = 10 if age >= 18: print("Adult") else: print("Child")
Adult
Error
Child
Teen
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to check a second condition?
else if
elif
then
elseif
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result? python Copy Edit x = 7 if x % 2 == 0: print("Even") else: print("Odd")
7
Error
Odd
Even
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is true about if statements?
if must be written in uppercase
if must end with a colon :
if must include else
if must be the last line
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be printed? python Copy Edit score = 85 if score > 90: print("A") elif score > 80: print("B") else: print("C")
B
C
85
A
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
40 questions
TIK-7
Quiz
•
7th Grade
40 questions
KISI UAS KELAS 7F, SEMESTER GENAP TAHUN 2025
Quiz
•
7th Grade - University
35 questions
ASTS TIK 6 GENAP
Quiz
•
6th Grade - University
40 questions
6-20
Quiz
•
6th Grade - University
37 questions
Đề cương GKII Tin7
Quiz
•
7th Grade
31 questions
Intro to IT Form 1s
Quiz
•
7th Grade
32 questions
Quiz SKL Informatika kelas 9
Quiz
•
6th - 8th Grade
31 questions
Kiến thức cơ bản về công nghệ thông tin
Quiz
•
7th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
5 questions
Legends, Leaders, & Changemakers: Maya Angelou
Interactive video
•
6th - 8th Grade
22 questions
distributive property
Quiz
•
7th Grade
10 questions
Understanding Poetry and Literary Devices
Interactive video
•
4th - 8th Grade
20 questions
Ethos, Pathos, Logos Practice
Quiz
•
6th - 7th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
20 questions
Main Idea and Supporting Details
Quiz
•
7th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
