
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
12 questions
PYTHON APTITUDE

Quiz
•
University
10 questions
Introduction & Basic Program Structure

Quiz
•
University
15 questions
JavaScript

Quiz
•
11th Grade
20 questions
Программирование на Python

Quiz
•
10th Grade
20 questions
Analisis Data dengan Python

Quiz
•
10th Grade
20 questions
python basics

Quiz
•
9th - 12th Grade
11 questions
conditional statements and While Loop

Quiz
•
University
15 questions
Bài 19: Câu lệnh rẽ nhánh IF

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
20 questions
Figurative Language Review

Quiz
•
8th Grade
10 questions
Understanding the Scientific Method

Interactive video
•
5th - 8th Grade
20 questions
Scientific method and variables

Quiz
•
8th Grade
20 questions
Physical and Chemical Changes

Quiz
•
8th Grade