
Understanding Python Selection Basics
Quiz
•
Information Technology (IT)
•
8th Grade
•
Hard
J Blakley
Used 2+ times
FREE Resource
Enhance your content in a minute
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
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
20 questions
Ethics and AI Quiz
Quiz
•
6th - 8th Grade
18 questions
UH 2: Grafik, Fungsi Logical IF, VLookup & HLookup
Quiz
•
8th Grade
20 questions
ICT G 7 Chapter 2.1 Input and Output Devices
Quiz
•
7th Grade - University
15 questions
Understanding Loops in C Programming
Quiz
•
1st Grade - University
15 questions
Python Data Structures
Quiz
•
6th - 8th Grade
20 questions
Chapter 12 Exam Review
Quiz
•
8th Grade
15 questions
Quiz về Kiểu Dữ Liệu List và Set (1)
Quiz
•
7th Grade - University
15 questions
Variables, tipos de datos y operadores
Quiz
•
8th Grade
Popular Resources on Wayground
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
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th 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
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
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
20 questions
Slope from a Graph
Quiz
•
8th Grade
