Python Booleans and selection 3

Quiz
•
Computers
•
8th Grade
•
Medium

M Ellis
Used 4+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the `elif` command in Python?
To handle a single condition
To handle multiple conditions
To end a loop
To start a function
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the code print if the input year is 7?
You are in Key Stage 2
You are in Key Stage 3
You are in Key Stage 4
Not valid
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the code print if the input year is 12?
You are in Key Stage 3
You are in Key Stage 4
You are in Key Stage 5
Not valid
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to check a condition in Python?
for
elif
while
if
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output if none of the `if` or `elif` conditions are met?
You are in Key Stage 3
You are in Key Stage 4
You are in Key Stage 5
Not valid
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the "if" statement in the given Python code?
To check a condition and execute code if the condition is true
To repeat a block of code multiple times
To define a function
To import a module
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to convert the user input into an integer?
str()
int()
float()
bool()
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Scratch MGPS

Quiz
•
6th - 8th Grade
17 questions
Scratch (If Statement + Project)

Quiz
•
7th - 9th Grade
21 questions
Week 5 Homework

Quiz
•
8th Grade
15 questions
Python Quiz

Quiz
•
8th Grade
20 questions
Scratch Pre-Assessment

Quiz
•
5th - 9th Grade
21 questions
Python 201 Lessons 6-9 Vocab

Quiz
•
6th - 8th Grade
15 questions
Intro to Scratch

Quiz
•
6th - 8th Grade
17 questions
Scratch

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