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

Software Engineering MCQs with Answers

Software engineering MCQs with answers and detailed explanations for NTS, GAT, university tests and IT job interviews. SDLC, testing and design covered. Take a scored quiz instead →

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)
Submitted by: mcqstutor Team 0 comments

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)
Submitted by: mcqstutor Team 0 comments

According to the Liskov Substitution Principle (LSP), objects of a superclass should be replaceable with objects of its subclasses without:

AIncreasing execution time
BChanging database schemas
CAltering the correctness of the program
DModifying compiler settings
Submitted by: mcqstutor Team 0 comments

The Interface Segregation Principle (ISP) dictates that clients should not be forced to depend upon:

AConcrete implementations of factory classes
BAbstract superclasses
CDatabase connection pools
DInterfaces that they do not use
Submitted by: mcqstutor Team 0 comments

Which type of cohesion is present when functions are placed together in a module purely because they process the same data structures or input stream?

ASequential Cohesion
BCommunicational Cohesion
CProcedural Cohesion
DLogical Cohesion
Submitted by: mcqstutor Team 0 comments

Which type of cohesion occurs when the output of one component in a module serves as the direct input to the next component?

AProcedural Cohesion
BFunctional Cohesion
CSequential Cohesion
DTemporal Cohesion
Submitted by: mcqstutor Team 0 comments

Which type of coupling occurs when one module modifies internal data or branch logic of another module directly?

ACommon Coupling
BControl Coupling
CStamp Coupling
DContent Coupling
Submitted by: mcqstutor Team 0 comments