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: DRY principle in software engineering stands for
A) Delayed Runtime Yield
B) Do Reuse YAML
C) Don't Repeat Yourself
D) Dynamic Response Yielding
โœ… Correct Answer: C
Explanation: DRY emphasizes reducing redundancy by reusing code and logic.
Q: Incremental model delivers
A) hardware interfaces only
B) full software in one go
C) only prototypes
D) small parts of software over time
โœ… Correct Answer: D
Explanation: The incremental model builds software in pieces, each adding functionality.
Q: A build is considered stable when
A) it has admin privileges
B) it runs without internet
C) it passes all defined tests
D) it compiles without error
โœ… Correct Answer: C
Explanation: A stable build has passed key tests and is ready for further testing or use.
Q: Documentation is most useful for
A) both users and developers
B) users only
C) hardware designers
D) developers only
โœ… Correct Answer: A
Explanation: Documentation supports both end users (guides) and developers (maintenance).
Q: Refactoring is the process of
A) improving internal code structure without changing behavior
B) shortening documentation
C) removing bugs only
D) rewriting all code
โœ… Correct Answer: A
Explanation: Refactoring enhances code quality while preserving its output.