python module

python module

9th - 12th Grade

14 Qs

quiz-placeholder

Similar activities

Основи Python

Основи Python

12th Grade

10 Qs

Week1: Introduction to C Programming

Week1: Introduction to C Programming

10th Grade

10 Qs

Programming with Python

Programming with Python

7th - 9th Grade

10 Qs

cp1Gr9Adv

cp1Gr9Adv

9th Grade

10 Qs

KTGK. Bài 16. NNLT trình ngôn ngữ và python

KTGK. Bài 16. NNLT trình ngôn ngữ và python

10th Grade

15 Qs

The Technology Life

The Technology Life

8th - 12th Grade

14 Qs

Python Functions & Library

Python Functions & Library

12th Grade

12 Qs

Python basics

Python basics

9th - 12th Grade

16 Qs

python module

python module

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

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

Media Image

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

Media Image

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?