Module quiz: Modules, packages, libraries and tools

Module quiz: Modules, packages, libraries and tools

  1. Which of the following is not true about Test-driven development?

    • In TDD, the requirements and standards are highlighted from the beginning.

    • The process can also be called Red-Green refactor cycle.

    • It ensures that the entire code is covered for testing.

    • Test-driven development can only have one cycle of testing and error correction.

  2. Which of the following is a built-in package for testing in Python?

    • Robot Framework

    • PyTest

    • Pyunit or Unittest

    • Selenium

  3. Which of the following is an important keyword in Python used for validation while doing Unit testing?

    • assert

    • yield

    • lambda

    • async

  4. Which of the following ‘V’s’ is not identified as a main characteristic of Big Data?

    • Variety

    • Variability

    • Volume

    • Velocity

  5. What will be the output of the following piece of code:

     from math import pi
     print(math.pi)
    
    • 3.141592653589793

    • ImportError: No module named math

    • There will be no output

    • NameError: name ‘math’ is not defined

  6. Which of the following is NOT primarily a package used for Image processing or data visualization?

    • OpenCV

    • Scrapy

    • Seaborn

    • Matplotlib

  7. _______ is/are the default package manager(s) for installing packages in Python.

    • pip

    • Built-in Module

    • Python Standard Library

    • Python Package Index (pypi)

  8. If you are working on some codeblock, which of the following can be 'imported' in it from external source?

    Select all that apply.

    • Packages

    • Functions

    • Modules

    • Variables