Exceptions and Classes
Quiz
•
Fun, Computers
•
Professional Development
•
Practice Problem
•
Medium
Estefanía Garcés Pérez
Used 9+ times
FREE Resource
Enhance your content in a minute
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.
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
18 questions
Avengers
Quiz
•
KG - Professional Dev...
25 questions
7 ÔT Giữa Hk 1 tin học 7 23 - 24
Quiz
•
Professional Development
20 questions
Révision HTML, CSS et JavaScript
Quiz
•
Professional Development
20 questions
Dad Jokes
Quiz
•
Professional Development
20 questions
Teaching Strategy
Quiz
•
Professional Development
20 questions
Random General Knowledge
Quiz
•
12th Grade - Professi...
20 questions
CPA JYSS 2018 Prelims Paper 1
Quiz
•
7th Grade - Professio...
16 questions
2020 kpop Quiz (Jan & Feb)
Quiz
•
5th Grade - Professio...
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Fun
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
