
Selection Programming_If condition

Quiz
•
Information Technology (IT)
•
8th Grade
•
Easy
Doan Thu
Used 1+ times
FREE Resource
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
Similar Resources on Wayground
11 questions
IT01

Quiz
•
University
11 questions
Câu Lệnh Rẽ Nhánh IF ELSE

Quiz
•
10th Grade
14 questions
Kuis XI

Quiz
•
11th Grade
10 questions
LOOPS AND FLOW CONTROL STATEMENTS

Quiz
•
8th Grade
10 questions
Quizzi bài 29 Tin học 10

Quiz
•
10th Grade - University
20 questions
Algoritma Struktur Data

Quiz
•
University
10 questions
Refresh Python

Quiz
•
University
10 questions
Quiz 2

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Information Technology (IT)
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
15 questions
Wren Pride and School Procedures Worksheet

Quiz
•
8th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
10 questions
Converting Repeating Decimals to Fractions

Quiz
•
8th Grade