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 context diagram is used to
A) represent data flow
B) model algorithms
C) code user interface
D) simulate execution
βœ… Correct Answer: A
Explanation: A context diagram shows the system’s interaction with external entities.
Q: Modularity allows
A) division of system into manageable units
B) better error handling
C) duplication of code
D) longer programs
βœ… Correct Answer: A
Explanation: Modularity breaks systems into modules, improving manageability and reusability.
Q: A software metric is useful for
A) debugging errors
B) user interface design
C) measuring software attributes
D) general hardware monitoring
βœ… Correct Answer: C
Explanation: Software metrics quantify various software characteristics like complexity, quality, etc.
Q: An SRS document contains
A) test scripts
B) use case diagrams only
C) source code
D) functional and non-functional requirements
βœ… Correct Answer: D
Explanation: Software Requirement Specification defines all the system's requirements clearly.
Q: Coupling refers to
A) variable scope
B) memory usage
C) the level of dependency between modules
D) internal code logic
βœ… Correct Answer: C
Explanation: Lower coupling is preferred to reduce dependencies between modules.