
If, elif, else
Quiz
•
Computers
•
8th - 9th Grade
•
Practice Problem
•
Medium
Standards-aligned
david alex
Used 42+ times
FREE Resource
Student preview

10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The if, elif, else statement is used for...
selection
iteration
indentation
printing
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which symbol should go at the end of an if statement?
"
)
:
;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what does the == sign do in this code?
compares the value stored in the password variable with the string "secret"
assigns the string value "secret" to the password variable
prints the password
asks the user to input their password
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what is the variable name in this code?
if
secret
password
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
else: is used
to give an extra condition
to provide an output when the other conditions are false
because it is required
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
If you want more than one option for your code, what do you use (after if)?
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol do you use to make or add a comment in Python?
@
¬
;
#
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?
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Computers
18 questions
[AP CSP] JavaScript Programming Lesson 2025-2026
Lesson
•
9th - 12th Grade
57 questions
[AP CSP] Unit 5 Review: Internet & Cybersecurity
Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
15 questions
Google Sheets
Quiz
•
7th - 8th Grade