Return to home page

Python Quiz: Module 8

Modularization and Testing


  1. Which of the following statements describe a Class?

  2. Which of the following statements describe a Module?

  3. In the statement import employee as emp what is the import alias?

  4. Which of the following benefits does modularization provide?

  5. What python keyword makes it possible for modules to interact with each other?

  6. When does a Python module's __name__ get set to __main__?

  7. What is the purpose of setup function?

  8. What is the following describe the purpose of the teardown function?

  9. What is the name of a library used for unit testing in Python?

  10. What does the mock import provide for unit testing?