
If, elif, else

Quiz
•
Computers
•
8th - 9th Grade
•
Medium
Standards-aligned

david alex
Used 37+ 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
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol do you use to make or add a comment in Python?
@
¬
;
#
Create a free account and access millions of resources
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade