Using Python Libraries || Type A || Sumita Arora || Class 12 || Computer science || Information practices || Solution ||




Q1 = What is the significance of Modules?



Q2 = What are docstrings ? What is their significance ? Give example to support your answer.



Q3 = What is a package? How is a package different from module?



Q4 = What is a library? Write procedure to create own library in Python



Q5 = What is the use of file __init__.py in a package even when it is empty?



Q6 = What is the importance of site-packages folder of Python installation?



Q7=How are following import statements different?


(a) import X

(b) from X import *

(c) from X import a, b, c



Q8 = What is PYTHON PATH variable? What is its significance?



Q9= In which order Python looks for the function/module names used by you.



Q10= What is the usage of help() and dir() functions.



Q11 = Name the Python Library modules which need to be imported to invoke the following functions:


(I)log()

(ii) pow()



Q12 = What is dot notation of referring to objects inside a module?



Q13 = Why should the from <module> import <object> statement be avoided to import objects?



Q14 = What do you understand by standard library of Python?



Q15 = Explain the difference between import <module> and from <module> import statements, with examples.



5 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post