Skip to content
KALANBLON
Show contents

Chapter 6 of 6 · 10 min

Quiz: reliable code

Tests, edge cases and the stock management project: last quiz of the Python path. You need 70 % correct answers to pass the course.

Quiz

5 questions · pass mark: 70%

  1. 1.What happens if an assert's condition is false?

    One answer

  2. 2.To test a function average(grades), which cases are edge cases? (several answers)

    Several answers possible

  3. 3.What is 0.1 + 0.2 == 0.3 in Python?

    One answer

  4. 4.In the stock project, why does sell check everything before changing the quantity?

    One answer

  5. 5.Complete the name of the tool that finds and automatically runs a project's test_… functions.

    Complete the code

    $ ______

Your progress is saved on this device. Create a free account to keep your progress on all your devices.