
Selection Programming_If condition
Quiz
•
Information Technology (IT)
•
8th Grade
•
Practice Problem
•
Easy
Doan Thu
Used 1+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of an if statement in Python?
Repeat code
Make a decision
Create a list
Exit the program
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
temperature = 30 if temperature > 25: print("It's hot!") What is printed?
It's cold
It's hot!
Nothing
Error
3.
OPEN ENDED QUESTION
20 sec • 1 pt
What will this code print? number = 0 if number > 0: print("Positive") else: print("Not positive")
Evaluate responses using AI:
OFF
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which symbol is used for "equal to" in a condition?
=
==
===
:=
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output? score = 75 if score >= 90: print("A") elif score >= 80: print("B") elif score >= 70: print("C") else: print("D")
A
B
C
D
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the correct structure:
if: x > 10
if (x > 10)
if x > 10:
if x > 10
7.
OPEN ENDED QUESTION
20 sec • 1 pt
if "a" in "apple": print("Yes") Will this print "Yes"?
Evaluate responses using AI:
OFF
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Animation Techniques Quiz
Quiz
•
10th Grade - University
10 questions
Quiz di Coding su Python
Quiz
•
9th - 12th Grade
20 questions
PTS Ganjil Grade XII 2024
Quiz
•
12th Grade
15 questions
Microbit + Servo
Quiz
•
8th Grade
10 questions
Tin 9 Bài 8. Hàm SUMIF
Quiz
•
9th Grade - University
20 questions
Quis SIG
Quiz
•
University
20 questions
latsol PH Informatika kelas 11 Jarkom
Quiz
•
11th Grade - University
15 questions
The 7 Soft Skills You Need to Be Successful
Quiz
•
9th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
15 questions
scatter plots and trend lines
Quiz
•
8th Grade
20 questions
Physical and Chemical Changes
Quiz
•
8th Grade
6 questions
Veterans Day
Lesson
•
8th Grade
13 questions
Finding slope from graph
Quiz
•
8th Grade
10 questions
Exploring Europe: Geography, History, and Culture
Interactive video
•
5th - 8th Grade
