Pakistan's best MCQs practice hub — FPSC · PPSC · CSS · NTS · Other Exams
Login

Which SOLID principle states that software entities (classes, modules, functions) should be open for extension, but closed for modification?

ALiskov Substitution Principle (LSP)
BOpen-Closed Principle (OCP)
CInterface Segregation Principle (ISP)
DSingle Responsibility Principle (SRP)

Explanation

The Open-Closed Principle allows system behavior to be extended via polymorphism or inheritance without modifying existing source code.

Exam Relevance
  • Topic: Software Architecture
  • Subtopic: SOLID Principles
Submitted by: mcqstutor Team More Software Engineering MCQs →

No Comments

Leave a comment

Your email address will not be published. Required fields are marked *