• 8 hours
  • Easy

Free online content available in this course.

course.header.alt.is_video

course.header.alt.is_certifying

Got it!

Last updated on 3/28/24

Apply the SOLID Design Principles to Python Code

Evaluated skills

  • 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

Ever considered an OpenClassrooms diploma?
  • Up to 100% of your training program funded
  • Flexible start date
  • Career-focused projects
  • Individual mentoring
Find the training program and funding option that suits you best