Skip to content
KALANBLON
Show contents

Chapter 3 of 7 · 10 min

Quiz: split your code well

Cohesion, coupling, single responsibility, layers and dependency injection: let's check your design basics. You need 70% correct answers, and every answer is explained.

Quiz

6 questions · pass mark: 70%

  1. 1.What does the single responsibility principle say?

    One answer

  2. 2.What do we aim for in cohesion and coupling?

    One answer

  3. 3.Why pass today's date as a parameter rather than calling date.today() inside the function?

    One answer

  4. 4.In a layered architecture, which statements are true? (several answers)

    Several answers possible

  5. 5.Complete the name of the typing class that describes an interface by its methods.

    Complete the code

    from typing import ________
  6. 6.What is dependency injection?

    One answer

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