NSCT – Modules, Packages & Libraries MCQs

20 min Score: 0 Attempted: 0/20 Subscribe
1. What is a module in programming?





2. What is the main purpose of using modules?





3. What is a package in programming?





4. Which of the following is a benefit of using packages?





5. What is a library in programming?





6. Which of the following allows importing code from other files?





7. How can a module be reused in another program?





8. Which of the following helps avoid name conflicts between modules?





9. What is a standard library?





10. Which of the following is a third-party library?





11. What is the main benefit of using libraries?





12. Which keyword is commonly used to access a module in a program?





13. What is the difference between a module and a package?





14. Which of the following is true about libraries?





15. What is the purpose of the __init__ file in a package?





16. Can a module import another module?





17. Which of the following is an example of a Python standard library?





18. What is the main advantage of using modules and packages?





19. Which of the following is used to install third-party libraries in Python?





20. What is a namespace in the context of modules and packages?





All Copyrights Reserved 2025 Reserved by T4Tutorials