
Coding Week 4 Quiz
Quiz
•
others
•
8th Grade
•
Easy
Padma Kanukollu
Used 1+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen if a ValueError occurs and no except block is provided?
The program will continue to run normally
The error will be ignored
The program will crash and show a traceback
The input will be skipped
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the except block?
To run code that never causes an error
To handle the error raised in the try block
To skip execution
To comment out the error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following can go inside a try block?
Only print statements
Only input statements
Any code that may raise an exception
Only variable declarations
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the result of the following code if the user enters 5?
Cannot divide by zero.
Invalid number.
2.0
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is automatically called when a new object is created in a class?
__start__()
__call__()
__init__()
__create__()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
Error
Hello
display
Test
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this code?
value
0
5
Error
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
15 questions
8 - 9 FINAL
Quiz
•
8th Grade
12 questions
S.S. U1 L1 Vocabulary Quiz
Quiz
•
5th Grade - University
12 questions
Speed, Acceleration, and Gravity Test
Quiz
•
6th - 8th Grade
12 questions
"The Lottery" by Shirley Jackson
Quiz
•
6th - 8th Grade
13 questions
Article III--US Constitution
Quiz
•
8th Grade
14 questions
Cells & Systems
Quiz
•
6th - 8th Grade
18 questions
Expectations & Procedures Quiz
Quiz
•
6th - 8th Grade
10 questions
Booked, Pages 1-22
Quiz
•
8th Grade
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
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
20 questions
Figurative Language Review
Quiz
•
8th Grade
4 questions
End-of-month reflection
Quiz
•
6th - 8th Grade
20 questions
Distribute and Combine Like Terms
Quiz
•
7th - 9th Grade
20 questions
Physical and Chemical Changes
Quiz
•
8th Grade
22 questions
Newton's Laws of Motion
Lesson
•
8th Grade