OA. free
Free
Fujitsu System Design & Oop System Design & Oop Medium

SOLID Principles of Object Oriented Design Which of the following is NOT one of the SOLID...

Fujitsu technical mcq question, verified with a worked answer. Free to practise - no sign-up.

SOLID Principles of Object Oriented Design Which of the following is NOT one of the SOLID principles of object-oriented design? © Single Responsibility Principle (SRP) - A) Open/Closed Principle (OCP) - B) Dependency Injection Principle (DIP) - C) Mutable State Principle (MSP)

Choose one option.
Show answer & explanation
Answer: C. Mutable State Principle (MSP)

The SOLID principles consist of Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion. 'Mutable State Principle' is not a recognized part of this architectural framework.

Step-by-step Derivation:
Step 1: Identify the five components of the SOLID acronym:

  • S: Single Responsibility Principle (SRP)
  • O: Open/Closed Principle (OCP)
  • L: Liskov Substitution Principle (LSP)
  • I: Interface Segregation Principle (ISP)
  • D: Dependency Inversion Principle (DIP)

Step 2: Evaluate the given options against this list:

  • Option A (Open/Closed Principle) is the 'O' in SOLID.
  • Option B (Dependency Injection/Inversion Principle) refers to the 'D' in SOLID (Note: While DIP is Dependency Inversion, Dependency Injection is the primary technique used to achieve it, and in the context of multiple-choice questions on SOLID, this is typically treated as the 'D' component).
  • Option C (Mutable State Principle) does not appear in the SOLID acronym and is not a recognized design principle of this set.

Step 3: Conclusion: Option C is the only item that is NOT a SOLID principle.