wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Lesson 29 - Introduction to module

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

which keyword is used to import the modules in the python ?

a)

import

b)

importing

c)

imported

d)

none

2.

if we only import the module then we need to use the function like -

a)

function

b)

module.function()

c)

both

d)

none

3.

which statement is true about a module ?

a)

module is the python program which describes functions, classes or variables.

b)

module is a function in python

c)

module can be anything in python

d)

none

4.

In how many ways we can import a module ?

a)

1

b)

2

c)

3

d)

none

5.

What will be the output of the following code ?

a)

321

b)

345

c)

34

d)

none

6.

python modules are saved with the extension -

a)

.mod

b)

.module

c)

.py

d)

none

7.

Which python data type is immutable is nature ?

a)

list

b)

tuple

c)

set

d)

string

8.

Which of the following operator is used to compare operator -

a)

!=

b)

<=

c)

==

d)

all of the above

9.

Which of the following is known as the bitwise operator -

a)

and

b)

&

c)

==

d)

none

10.

What will be the output of the following code ?

a)

25

b)

0

c)

5

d)

none