Open-Closed Principle Quiz
5 Questions
2 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

According to the open–closed principle, software entities should be:

  • Open for extension, closed for modification (correct)
  • Open for both extension and modification
  • Open for modification, closed for extension
  • Closed for both extension and modification

The open–closed principle is one of the five SOLID principles of:

  • Object-oriented design (correct)
  • Procedural programming
  • Database management
  • Functional programming

A module will be said to be open if it is still available for:

  • Modification
  • Both extension and modification
  • Use by other modules
  • Extension (correct)

Who is generally credited for having originated the term open–closed principle?

<p>Bertrand Meyer (C)</p> Signup and view all the answers

At the time Meyer was writing, adding fields or functions to a library inevitably required changes to any programs depending on that library, indicating that the library was not:

<p>Closed for modification (C)</p> Signup and view all the answers

More Like This

Use Quizgecko on...
Browser
Browser