Software Engineering MCQs

Software Engineering MCQs help students, graduates, and professionals prepare for competitive exams and job interviews related to software development. This section covers essential topics such as Software Development Life Cycle (SDLC), Agile methodologies, software design principles, testing techniques, project planning, and maintenance. These MCQs are designed for exams like NTS, PPSC, FPSC, and other IT-related recruitment tests. The goal is to help candidates assess their understanding of fundamental and advanced software engineering concepts. Regular practice with these MCQs enhances analytical skills and prepares individuals for real-world application in the software industry.

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.
Q: Software reliability refers to
A) Documentation size
B) Probability of failure-free operation
C) Cost
D) Popularity
โœ… Correct Answer: B
Explanation: Reliability measures the likelihood of a system performing without failure.
Q: Rapid Application Development (RAD) emphasizes
A) Delayed delivery
B) Ignoring users
C) Quick prototyping
D) Long planning
โœ… Correct Answer: C
Explanation: RAD focuses on quick development using iterative prototypes.
Q: Coupling between modules should be
A) Minimal
B) Fixed
C) Strong
D) Tight
โœ… Correct Answer: A
Explanation: Low coupling improves module independence and maintainability.
Q: A software requirement is considered valid when
A) It is hidden
B) It is clear and testable
C) It is vague
D) It cannot be tested
โœ… Correct Answer: B
Explanation: Valid requirements must be unambiguous and verifiable.
Q: Regression testing is performed when
A) Code is modified
B) A new project starts
C) Code is deleted
D) Code is archived
โœ… Correct Answer: A
Explanation: Regression testing ensures new changes do not break existing functionality.