Skip to content
KALANBLON
Show contents

Chapter 7 of 7 · 10 min

Quiz: design to last

Design patterns, tests and test doubles: the last quiz of this course. You need 70% correct answers to pass it.

Quiz

6 questions · pass mark: 70%

  1. 1.Which pattern keeps each variant of a computation separate, to choose the right one at run time?

    One answer

  2. 2.With the Observer pattern, what does the pay() function know about the services that react to the payment?

    One answer

  3. 3.When should a design pattern be introduced?

    One answer

  4. 4.In the test pyramid, which tests should be the most numerous?

    One answer

  5. 5.What does a unittest.mock Mock provide? (several answers)

    Several answers possible

  6. 6.Do the slots 9-11 and 11-13 overlap, with the condition start1 < end2 and start2 < end1?

    One answer

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