• 8 heures
  • Facile

Ce cours est visible gratuitement en ligne.

course.header.alt.is_video

course.header.alt.is_certifying

J'ai tout compris !

Mis à jour le 28/03/2024

Apply the SOLID Design Principles to Python Code

Compétences évaluées

  • Apply the SOLID design principles to Python code
  • Question 1

    A human resources software system needs to add a new kind of vacation pay. The original code must be significantly modified to support the feature. Which SOLID design principle does this violate?

    • Single responsibility

    • Open/closed

    • Liskov substitution

    • Interface segregation

    • Dependency inversion

  • Question 2

    A derived class implements an overridden method by throwing an UnsupportedOperationException. Which SOLID design principle does this violate?

    • Single responsibility

    • Open/closed

    • Liskov substitution

    • Interface segregation

    • Dependency inversion

  • Question 3

    If a method of a class has many optional paths, it's difficult to test. Which SOLID design principle does this violate?

    • Single responsibility

    • Open/closed

    • Liskov substitution

    • Interface segregation

    • Dependency inversion

Et si vous obteniez un diplôme OpenClassrooms ?
  • Formations jusqu’à 100 % financées
  • Date de début flexible
  • Projets professionnalisants
  • Mentorat individuel
Trouvez la formation et le financement faits pour vous