
Understanding Python Selection Basics

Quiz
•
Information Technology (IT)
•
8th Grade
•
Hard
J Blakley
Used 2+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code print? ```python temperature = 18 if temperature < 20: print("It's a bit chilly today.") else: print("It's warm today.") ```
It's warm today.
It's a bit chilly today.
18
Nothing will be printed.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a comparison operator in Python?
and
or
==
not
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following expression? ```python 5 > 3 and 2 < 1 ```
True
False
5
2
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement will check if a variable `age` is at least 16?
if age > 16:
if age <= 16:
if age >= 16:
if age == 16:
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code print? ```python colour = "blue" if colour == "red": print("Stop") else: print("Go") ```
Stop
Go
blue
Nothing
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a logical operator in Python?
>
and
=
!=
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? ```python x = 10 if x != 5: print("x is not 5") else: print("x is 5") ```
x is 5
x is not 5
10
Nothing
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Python 8 klasa

Quiz
•
8th Grade
24 questions
Python Syntax and Logic Quiz

Quiz
•
8th Grade
17 questions
Kira-JH U1/L1

Quiz
•
6th - 8th Grade
25 questions
Cuestionario Programación Python Niños y Adolescentes

Quiz
•
8th Grade
15 questions
Logo Remix Challenge Quiz

Quiz
•
8th Grade
20 questions
Microsoft Word Quiz

Quiz
•
8th Grade
15 questions
Саптарды форматтоо боюнча тест

Quiz
•
8th Grade
22 questions
Lua Roblox Studio (Junior)

Quiz
•
8th 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