
Python Booleans and selection 3
Authored by M Ellis
Computers
8th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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()
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
17 questions
Cyber Camps 2018 - Review Day 3 Windows
Quiz
•
7th - 12th Grade
20 questions
CPA Revision MCQ1
Quiz
•
8th - 9th Grade
15 questions
Networking Quiz
Quiz
•
8th - 9th Grade
15 questions
Arduino
Quiz
•
7th - 9th Grade
15 questions
History of Computers
Quiz
•
6th - 12th Grade
15 questions
Microsoft PowerPoint 2016
Quiz
•
8th Grade
16 questions
Python Basics
Quiz
•
KG - University
20 questions
Python Recap
Quiz
•
7th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade