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

In object-oriented design, which principle states that high-level modules should not depend on low-level modules, but both should depend on abstractions?

ADependency Inversion Principle (DIP)
BSingle Responsibility Principle (SRP)
COpen-Closed Principle (OCP)
DLiskov Substitution Principle (LSP)

Explanation

The Dependency Inversion Principle (the ‘D’ in SOLID) ensures high-level policy modules remain decoupled from low-level implementation details.

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 *