Modules and Packages – Multiple Choice Questions (MCQs)
-
-
14. How do you import a specific function 'my_function' from the module 'sub_module' within the package 'my_package'?
-
15. What is the Python Standard Library?
-
16. Which module in the Python Standard Library is commonly used for working with dates and times?
-
17. Which module in the Python Standard Library is commonly used for interacting with the operating system?
-
18. Which module in the Python Standard Library provides access to system-specific parameters and functions?
-
19. What is pip in Python?
-
20. How do you install a Python package named 'requests' using pip?
-
21. How do you uninstall a Python package named 'requests' using pip?
-
22. How do you list all installed packages using pip?
-
23. What is a virtual environment in Python?
-
24. Which module is commonly used to create virtual environments in Python?