MCQ On Software Testing
Q1. Software Testing is performed to:.
- Prove that the software has no defects
- Detect defects and ensure software meets requirements
- Increase software complexity
- Replace documentation
Answer: b, Detect defects and ensure software meets requirements
Solution: Testing helps detect defects and verify requirement compliance.
Q2. Which of the following is NOT a goal of software testing?.
- To find defects
- To ensure customer satisfaction
- To check performance
- To increase development cost
Answer: d, To increase development cost
Solution: Testing reduces cost by detecting defects early.
Q3. Which pair is correct for Functional Testing?.
- Unit Testing, Integration Testing, System Testing
- Unit Testing, Performance Testing, System Testing
- Usability Testing, Performance Testing, System Testing
- Usability Testing, Performance Testing, Compatibility Testing
Answer: a, Unit Testing, Integration Testing, System Testing
Solution: Functional testing includes Unit, Integration, and System testing. Performance, Usability, Compatibility are non-functional.
Q4. Which pair represents Non-Functional Testing?.
- Unit Testing, Security Testing, Integration Testing
- Load Testing, Stress Testing, Performance Testing
- System Testing, UAT, Regression Testing
- Integration Testing, Volume Testing, Unit Testing
Answer: b, Load Testing, Stress Testing, Performance Testing
Solution: Load, stress, and performance testing are all non-functional.
Q5. Which of the following is a correct mix of Functional + Non-Functional tests?.
- Unit Testing + Load Testing
- Load Testing + Stress Testing
- Performance Testing + Security Testing
- Unit Testing + Integration Testing
Answer: a, Unit Testing + Load Testing
Solution: Unit = functional, Load = non-functional.
Q6. Which testing does NOT require code execution?.
- System testing
- Unit testing
- Alpha testing
- Static testing
Answer: d, Static testing
Solution: Static testing includes reviews, inspections, walkthroughs.
Q7. Which is a type of non-functional testing?.
- Unit testing
- Regression testing
- Usability testing
- Integration testing
Answer: c, Usability testing
Solution: Usability testing evaluates user experience, a non-functional aspect.
Q8. Which of the following is a type of functional testing?.
- Load testing
- Unit testing
- Stress testing
- Volume testing
Answer: b, Unit testing
Solution: Unit testing is a functional test that checks correctness of individual units.