Software Engineering MCQs
Software Engineering MCQs cover SDLC, Agile, design principles, testing, planning, and maintenance for NTS, PPSC, FPSC, and IT exams, helping candidates assess knowledge, improve skills, and prepare for software development careers.
Q: A use case diagram models
A) Functional requirements
B) Source code
C) Database structure
D) UI design
โ
Correct Answer: A
Explanation: Use case diagrams show interactions between users and the system.
Q: In software metrics, LOC stands for
A) Logic of Code
B) Lines of Code
C) Line of Configuration
D) Level of Code
โ
Correct Answer: B
Explanation: LOC is a basic metric used to estimate software size and complexity.
Q: A stub in testing simulates
A) A database
B) A lower-level module
C) A complete system
D) A UI
โ
Correct Answer: B
Explanation: Stubs are used to simulate lower-level modules during testing.
Q: Waterfall model proceeds
A) Sequentially
B) Randomly
C) Iteratively
D) In a loop
โ
Correct Answer: A
Explanation: Waterfall is a linear model with sequential phases.
Q: The main goal of software testing is
A) Increase bugs
B) Remove comments
C) Ensure quality
D) Delay delivery
โ
Correct Answer: C
Explanation: Testing identifies and fixes bugs to ensure product quality.