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: Regression testing ensures
A) faster load time
B) test cases are renamed
C) previous functionality remains unaffected
D) code is compiled quickly
βœ… Correct Answer: C
Explanation: It confirms that new changes don't break existing features.
Q: A software framework provides
A) memory management tools
B) test cases
C) GUI enhancements
D) reusable structure and guidelines
βœ… Correct Answer: D
Explanation: Frameworks offer reusable templates and tools for consistent application development.
Q: Risk assessment includes
A) scheduling only
B) identifying potential problems
C) aligning CSS
D) choosing font styles
βœ… Correct Answer: B
Explanation: Risk assessment is crucial to foresee and mitigate potential project challenges.
Q: An abstract class is used to
A) provide a base for derived classes
B) execute programs
C) store user passwords
D) prevent polymorphism
βœ… Correct Answer: A
Explanation: Abstract classes define base behavior and can’t be instantiated directly.
Q: Data hiding is achieved through
A) infinite loops
B) private members
C) public attributes
D) global variables
βœ… Correct Answer: B
Explanation: Private members keep data hidden from outside the class, enforcing encapsulation.