
CodeHS Units 7-9 Quiz
Quiz
•
others
•
•
Hard
Mr. Malone
Used 3+ times
FREE Resource
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
William is writing a Python program. He wants to manually trigger an exception in a certain part of his code. Which keyword should he use?
raise
exception
throw
try
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Olivia is learning Python and she came across several exceptions while coding. She is aware of 'IndexError', 'ValueError', 'TypeError', and 'SyntaxError'. However, Benjamin told her that one of them is not commonly used. Which one is it?
IndexError
ValueError
TypeError
SyntaxError
3.
FILL IN THE BLANK QUESTION
30 sec • 2 pts
Daniel is writing a program and he needs to send a value to a function when it is called. Liam asked him what it is called. Can you help Avery explain it to Liam?
4.
FILL IN THE BLANK QUESTION
30 sec • 2 pts
Henry is working on his programming assignment and encounters an issue where his program abruptly stops and displays an error message. This is an example of what?
5.
FILL IN THE BLANK QUESTION
30 sec • 3 pts
Noah is learning Python and he came across the terms 'function parameter' and 'argument'. He asked Hannah to explain the difference between them. How should Hannah explain it to Noah?
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Liam, Aria, and Sophia are practicing their Python skills by writing for loops. They are trying to figure out which of the following for loops will produce the same output as the loop 'for i in range(10):'. Can you help them?
for i in range(11, 0):
for i in range(10, 0, -1):
for i in range(0, 10):
for i in range(0, 11, 1):
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Anika is programming a digital thermometer. She wants to set an alarm to go off when the temperature is between 3 and 12 degrees, exclusive. Which of the following while loops should she use?
while num > 12 and num < 3: # do something with num
while num < 12 or num < 3: # do something with num
while num <= 12 and num >= 3: # do something with num
while num < 12 and num > 3: # do something with num
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Python Programming Concepts Quiz
Quiz
•
KG - University
16 questions
Python Quiz on range() Function
Quiz
•
7th Grade
18 questions
Heart Structure and Function Test
Quiz
•
KG - University
22 questions
BoR Practice Set 1
Quiz
•
9th - 12th Grade
16 questions
Energy Unit Test
Quiz
•
KG - University
22 questions
ICT- REVISION (IB BOARD)
Quiz
•
7th Grade
20 questions
Banking
Quiz
•
University
23 questions
Classroom Rules
Quiz
•
KG - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for others
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade