Exceptions and Classes
Quiz
•
Fun, Computers
•
Professional Development
•
Medium
Estefanía Garcés Pérez
Used 9+ times
FREE Resource
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What's the use of try-except in Python?
Nothing.
Execute code if a condition is met.
Error handling.
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What's a Python class?
A function to create an object.
A procedure related to an object.
A template (blueprint) for creating objects.
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
When will the else part of try-except-else be executed?
Always.
When an exception occurs.
Never.
When an exception does not occur.
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Identify the term that describes the creation of a new object.
Declare.
Iteration.
Instantiation.
initialize.
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
When is the finally block executed?
When an exception occurs.
Always.
When an exception doesn't occur.
Never.
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Identify the code that properly creates an instance of a cass named Vehicle.
bus.Vehicle(wheels, color)
car = vehicle.create()
bike = Vehicle(2, "red")
bike = Vehicle(wheels, color)
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Can one except block handle multiple exceptions?
Yes.
Maybe.
No.
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
21 questions
THE JOKES
Quiz
•
1st Grade - Professio...
20 questions
js DOM
Quiz
•
12th Grade - Professi...
20 questions
Are you a blink? ~karma akabane
Quiz
•
KG - Professional Dev...
18 questions
dessert
Quiz
•
KG - Professional Dev...
20 questions
Kerala
Quiz
•
KG - Professional Dev...
16 questions
Photoshop tools
Quiz
•
6th Grade - Professio...
16 questions
DECI - Week 13 - round
Quiz
•
Professional Development
21 questions
My hero acadamia Quiz
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
