Using Python Libraries || True or False || Class 12
1. A library in Python is a collection of various packages.
2. Modules are used to categorize Python code into smaller parts.
3. The docstrings are useful for compilation of the code.
4. Python uses namespaces for documentation.
5. Module aliasing is carried out by using the as keyword.
6. Python does not allow creating own packages.
7. A library can have multiple modules in it.
8. Modularity increases the complexity of a Python program.
9. A package in Python must hold the file __init__.py.
10. A package and a library are technically not the same.
11. A python program and a Python module means the same.
12. A python program and a python module have the same .py file extension.
13. The import <module> statement imports everything in the current namespace of the Python program.
14. Any folder having .py files is a Python package.
15. A folder having .py files along with a special file i.e., __init__.py in it is an importable Python package.
Answer =
1. True
2. True
3. False
4. False
5. True
6. False
7. True
8. False
9. True
10. False
11. False
12. True
13. False
14. False
15. True
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )