
python module

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Ibrahim Khaleel
Used 2+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Modulo 1. Python

Quiz
•
10th Grade
11 questions
TIN10 BÀI 16

Quiz
•
10th Grade
15 questions
Python Programming Random Quiz

Quiz
•
11th Grade
10 questions
Python Programming Concepts Challenge

Quiz
•
10th Grade - University
15 questions
CICS Test 2 Review

Quiz
•
9th - 12th Grade
10 questions
7.9.4.1 - Scripting Languages

Quiz
•
10th Grade
11 questions
Y9 - T2 - L6 - RP

Quiz
•
9th Grade
9 questions
Checkpoint 1 revision

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1

Quiz
•
12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade