CS FundamentalsModerateCognizant · Capgemini pattern
The 'O' in SOLID states that a software module should be:
- A. Optimised before it is extended
- B. Owned by exactly one team
- C. Open for extension but closed for modification
- D. Open for modification but closed for extension
Correct answer: C. Open for extension but closed for modification
The Open/Closed Principle: add new behaviour by extending (new subclasses, strategies, plug-ins) rather than editing tested code.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- Which statement correctly describes a Type 1 hypervisor?
- Why do containers usually start faster and use less memory than virtual machines?
- Which of these is one of the four value statements of the Agile Manifesto?
- After a bug fix, the team re-runs previously passing tests to make sure nothing that used to work is now broken. This is:
- Which combination indicates a good modular design?
- A function takes two integer inputs, each valid in the range 1–100. Using standard (non-robust) boundary value analysis that varies one…