wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

PYTHON(LIBRARIES)

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is a library in python?

a)

COLLECTION OF FILES

b)

COLLECTION OF MODULES

c)

IT IS SUBPROGRAM

d)

NAME OF A FILE

2.

exp(),floor()belongs which module?

a)

cmath.py

b)

urlib.py

c)

math.py

d)

statistics.py

3.

Which operator is used in python to import all modules from package

a)

-- operator

b)

+ operator

c)
  • operator
d)

----> operator

4.

A variable defined inside the def() we called as

a)

Global

b)

enclosing

c)

local

d)

local to def()

5.

A logical group of related objects are known as

a)

Memory

b)

global space

c)

local space

d)

namespace

6.

A collection modules under common namespaces is known as (a)  

7.

Python follows name resoluation rule,also known as (a)   rule

8.

Python Provides three types of namespaces ________ , ________ , _______________

(a)  

9.

What will be the output of the following

from import factorial

print(math.factorial(5))

a)

25

b)

10

c)

120

d)

error bcz factorial is not a module in math

10.

Which of the statements is used to import all names from a module into the current calling module

a)

import

b)

from

c)

dir()

d)

import*