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 →

A top-down deductive safety analysis technique that uses boolean logic diagrams (AND/OR gates) to trace system failure causes to root events is:

AFault Tree Analysis (FTA)
BFailure Mode and Effects Analysis (FMEA)
CCleanroom Verification
DImpact Analysis
Submitted by: mcqstutor Team 0 comments

The systematic technique used to analyze failure modes, their immediate effects on system operation, and criticality ranking is:

AFault Tree Analysis (FTA)
BHazard and Operability Study (HAZOP)
CCause-Effect Analysis
DFailure Mode and Effects Analysis (FMEA)
Submitted by: mcqstutor Team 0 comments

In PERT scheduling, the variance ($sigma^2$) of a task duration estimate is mathematically given by:

A$sigma^2 = rac{b - a}{6}$
B$sigma^2 = left( rac{b - a}{6} ight)^2$
C$sigma^2 = rac{b + a}{2}$
D$sigma^2 = (b - m)^2$
Submitted by: mcqstutor Team 0 comments

In PERT project estimation, the expected activity duration ($T_e$) is calculated using Optimistic ($a$), Most Likely ($m$), and Pessimistic ($b$) estimates as:

A$T_e = rac{a + 4m + b}{6}$
B$T_e = rac{a + m + b}{3}$
C$T_e = rac{a + 2m + b}{4}$
D$T_e = rac{a + 6m + b}{4}$
Submitted by: mcqstutor Team 0 comments

In Chidamber & Kemerer (C&K) Object-Oriented metrics, Weighted Methods per Class (WMC) measures:

ATotal lines of code in a class
BNumber of subclass children
CSum of complexities of all methods defined within a class
DNumber of inherited interfaces
Submitted by: mcqstutor Team 0 comments

In C&K OO metrics, Depth of Inheritance Tree (DIT) measures:

AThe total number of subclasses inheriting from a base class
BThe number of private fields
CThe total overriding methods
DThe maximum structural length from the class node to the root of the inheritance hierarchy
Submitted by: mcqstutor Team 0 comments

In Halstead’s Software Science, program length ($N$) is calculated using total operators ($N_1$) and total operands ($N_2$) as:

A$N = N_1 imes N_2$
B$N = N_1 + N_2$
C$N = log_2(N_1 + N_2)$
D$N = N_1 / N_2$
Submitted by: mcqstutor Team 0 comments

Testing technique where input data domain is divided into contiguous partitions where software is expected to process all members within a partition identically is:

ABoundary Value Analysis
BCombinatorial Testing
CMutation Testing
DEquivalence Partitioning (EP)
Submitted by: mcqstutor Team 0 comments