
Revision Quiz 1
Authored by Harmeet Kaur
Computers
12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which block executes whether or not an exception occurs in Python?
Answer explanation
The finally block always executes.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What exception is raised when converting 'abc' to int using int('abc')?
Answer explanation
Invalid literal for int() raises ValueError.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Select the correct order of blocks in Python exception handling:
Answer explanation
Basic pattern is try/except/finally; else is optional between except and finally.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement will manually trigger an exception?
Answer explanation
Python uses raise to throw exceptions.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the else block in try/except/else indicate?
Answer explanation
else runs when no exception is raised in try.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What exception is most appropriate for division by zero?
Answer explanation
ZeroDivisionError is a subclass of ArithmeticError.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which exception is raised by list index out of range?
Answer explanation
IndexError occurs for invalid indices; it's a LookupError subclass.
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
41 questions
Microsoft Excel 2019 Final Exam Review
Quiz
•
9th - 12th Grade
35 questions
Photoshop ACA
Quiz
•
9th - 12th Grade
40 questions
FBLA Exploring Computer Science
Quiz
•
6th - 12th Grade
40 questions
C Programming Midterm Review
Quiz
•
11th - 12th Grade
37 questions
Excel Gmetrix Quiz
Quiz
•
10th - 12th Grade
36 questions
EarSketch/Python Programming
Quiz
•
9th - 12th Grade
35 questions
Python - 6.கட்டுப்பாட்டுக் கட்டமைப்புகள்
Quiz
•
12th Grade
36 questions
Chapter 3 File Management
Quiz
•
9th - 12th Grade
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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
22 questions
El Imperfecto
Quiz
•
9th - 12th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade
14 questions
Making Inferences From Samples
Quiz
•
7th - 12th Grade
23 questions
CCG - CH8 Polygon angles and area Review
Quiz
•
9th - 12th Grade
8 questions
Momentum and Collisions
Lesson
•
9th - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade