
Y8 If, elif, else
Computers
8th - 9th Grade
Used 95+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
11 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
What will be the output when this code is run?
65
42
output A
output B
6.
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
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is wrong with this code?
the if and else keywords need to switch
the if and elif keywords need to switch
the elif and else keywords need to switch
there needs to be an extra else statement
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
15 questions
Cyber Security Homework 1
Quiz
•
7th - 9th Grade
14 questions
Introduction to Networks
Quiz
•
6th - 8th Grade
10 questions
ICT Java programming workshop
Quiz
•
9th Grade
10 questions
Паскаль. Основные команды
Quiz
•
8th - 11th Grade
12 questions
Revision quiz on Access
Quiz
•
8th Grade
15 questions
J808 LO1 and LO2 planning project keywords / terms
Quiz
•
9th - 11th Grade
10 questions
INTERNET AND INTRANET
Quiz
•
9th - 11th Grade
10 questions
Social media influencers
Quiz
•
6th - 12th Grade
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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade