
python module
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Ibrahim Khaleel
Used 2+ times
FREE Resource
Enhance your content in a minute
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To sterilize an object hierarchy, the _____________ function must be called. To desterilize a data stream, the ______________ function must be called.
dumps(), undumps()
loads(), unloads()
loads(), dumps()
dumps(), loads()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many except statements can a try-except block have?
zero
one
more than one
more than zero
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When will the else part of try-except-else be executed?
always
when an exception occurs
when no exception occurs
when an exception occurs in to except block
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is the following Python code valid?
no, there is no such thing as else
no, else cannot be used with except
no, else must come before except
yes
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When is the finally block executed?
when there is no exception
when there is an exception
only if some condition that has been specified is satisfied
always
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code?
1 2
1
2
none of the mentioned
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Can one block of except statements handle multiple exception?
yes
no
type error
none
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
10 questions
Glastonbr.ICT Definitions
Quiz
•
9th Grade
15 questions
Bài 22-Kiểu dữ liệu danh sách
Quiz
•
10th Grade
13 questions
Pengenalan Aplikasi Blender
Quiz
•
11th Grade
10 questions
emtech
Quiz
•
12th Grade
12 questions
1.2.4. Types of Programming Language
Quiz
•
12th Grade
10 questions
Trắc nghiệm bài 12 tin học 11
Quiz
•
11th Grade
11 questions
Programming Quiz 1
Quiz
•
11th Grade
10 questions
Quiz Kelas 4
Quiz
•
10th 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
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
