
8.4.5 Selection & Elif homework

Quiz
•
Computers
•
8th Grade
•
Hard
J Platten
Used 16+ times
FREE Resource
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.
Similar Resources on Wayground
7 questions
If statements

Quiz
•
6th - 8th Grade
8 questions
Spot the Bug! (JS1)

Quiz
•
6th - 10th Grade
10 questions
BrainPOP Loops

Quiz
•
8th Grade
10 questions
Basic Python Programming_Class VIII

Quiz
•
8th Grade
10 questions
Python Lists

Quiz
•
8th - 9th Grade
10 questions
ASCII + Binary Representations

Quiz
•
5th - 12th Grade
10 questions
Yr 7 Python Turtle

Quiz
•
6th - 8th Grade
10 questions
Python - Printing, Variables and Syntax

Quiz
•
8th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade
25 questions
How to Email a Teacher- https://youtu.be/NioeNhfpVfI

Quiz
•
6th - 8th Grade
20 questions
Computer Hardware

Quiz
•
6th - 8th Grade
21 questions
Gear Ratio Practice

Quiz
•
6th - 8th Grade