Week 5 – Testing in Python

using python to interact with the operating system week 5 answers

Practice Quiz: Simple Tests

1. You can verify that software code behaves correctly using test ___.

  • Arguments
  • Cases
  • Loops
  • Functions

2. What is the most basic way of testing a script?

  • Let a bug slip through. 
  • Codifying tests into the software.
  • Different parameters with expected results.
  • Write code to do the tests.

3. When a test is codified into its own software, what kind of test is it?

  • Unit test
  • Integration test
  • Automatic test
  • Sanity testing

4. Using _____ simplifies the testing process, allowing us to verify the program's behavior repeatedly with many possible values.

  • integration tests
  • test cases
  • test-driven development
  • interpreter

5. The more complex our code becomes, the more value the use of _____ provides in managing errors.

  • loops
  • functions
  • parameters
  • software testing

Devendra Kumar

Project Management Apprentice at Google

Leave a Reply