Font size
WorksheetsPYTHON(LIBRARIES)
Total questions: 10
Worksheet time: 5mins
What is a library in python?
COLLECTION OF FILES
COLLECTION OF MODULES
IT IS SUBPROGRAM
NAME OF A FILE
exp(),floor()belongs which module?
cmath.py
urlib.py
math.py
statistics.py
Which operator is used in python to import all modules from package
-- operator
+ operator
- operator
----> operator
A variable defined inside the def() we called as
Global
enclosing
local
local to def()
A logical group of related objects are known as
Memory
global space
local space
namespace
A collection modules under common namespaces is known as (a)
Python follows name resoluation rule,also known as (a) rule
Python Provides three types of namespaces ________ , ________ , _______________
(a)
What will be the output of the following
from import factorial
print(math.factorial(5))
25
10
120
error bcz factorial is not a module in math
Which of the statements is used to import all names from a module into the current calling module
import
from
dir()
import*
