
8.4.5 Selection & Elif homework
Authored by J Platten
Computers
8th Grade
Used 16+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is selection programming?
A condition selects which code to repeat.
A condition chooses/decides which lines of code to run.
Any code that selects variable assignments.
Selecting to run every single line of code.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If we want multiple selections (more than two) in our Python program which is correct code to use?
if
if
if
else
if
else
else
else
if
elif
elif
else
if
else if
else if
else if
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is wrong with this code?
Missing equals sign
No indentation (white space)
No line spaces between the code
Nothing this code is fine.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is wrong with this code?
The code has been indented (white space)
There is a missing equals sign if age == 10
There is a missing equals sign on line one age == 10
the else statement is not complete else age ! = 10:
5.
MULTIPLE SELECT QUESTION
45 sec • 2 pts
What is wrong with this code? (Select two)
Missing equal sign
Missing comparison operator
Should be grade == 75
Should be elif grade < 80
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is wrong with this code?
The else should be an elif
The sequence is wrong the elif should be moved before the else
Missing an equal sign
if x >=5
There is nothing wrong with this code.
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
10 questions
Year 8 ICT Starters On Track Stage 2 - Topic 2: Website
Quiz
•
8th Grade
10 questions
I Can Code!
Quiz
•
KG - University
10 questions
Programming Basics
Quiz
•
8th Grade
10 questions
แบบทดสอบ เรื่อง รู้จัก scratch
Quiz
•
6th - 8th Grade
10 questions
CodeTigers Python 101
Quiz
•
KG - Professional Dev...
10 questions
Логічні вираз і прапорці
Quiz
•
8th Grade
10 questions
Prueba de microbit
Quiz
•
8th Grade
10 questions
Parts of Arduino IDE
Quiz
•
8th 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
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