
Selection Programming_If condition
Quiz
•
Information Technology (IT)
•
8th Grade
•
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
12 questions
CLC Lesson 7 Quiz
Quiz
•
University
10 questions
TIK-REKAM MEDIS
Quiz
•
University
10 questions
Data and Database Fundamentals part 1
Quiz
•
11th Grade
19 questions
Pengenalan Informatika
Quiz
•
10th Grade
20 questions
Algoritma Struktur Data
Quiz
•
University
15 questions
TES SUMATIF INFORMATIKA
Quiz
•
10th Grade
15 questions
QUIS SUMATIF 1
Quiz
•
12th Grade
20 questions
Diagnostic Test Computer Science
Quiz
•
9th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Information Technology (IT)
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
12 questions
Digital Citizenship BSMS
Quiz
•
6th - 8th Grade
20 questions
Physical and Chemical Changes
Quiz
•
8th Grade
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
15 questions
Halloween History Trivia
Quiz
•
7th - 8th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
