Software Engineering Software Testing and Quality Assurance 2 — Questions and Answers
Question 1: What distinguishes smoke testing from regression testing?
- Smoke testing is detailed; regression testing is high-level
- Smoke testing is a quick sanity check; regression testing is comprehensive (Correct answer)
- Smoke testing covers security; regression testing covers performance
- They are the same type of testing
Correct answer: Smoke testing is a quick sanity check; regression testing is comprehensive
Smoke testing is a quick, high-level check to verify basic functionality works before deeper testing, while regression testing is comprehensive.
Question 2: Which type of testing evaluates how a system performs under expected and peak load conditions?
- Stress testing
- Load testing (Correct answer)
- Soak testing
- Spike testing
Correct answer: Load testing
Load testing evaluates system behavior under expected and peak load conditions to ensure performance requirements are met.
Question 3: What is 'boundary value analysis' in software testing?
- Testing at the limits of input domains (Correct answer)
- Testing random inputs
- Testing invalid inputs only
- Testing all possible inputs
Correct answer: Testing at the limits of input domains
Boundary Value Analysis tests values at the edges of input partitions, as defects are most likely to occur at boundary conditions.
Question 4: In continuous testing, tests are executed:
- Once before release
- Manually by QA engineers only
- Automatically as part of the CI/CD pipeline (Correct answer)
- Only in the production environment
Correct answer: Automatically as part of the CI/CD pipeline
Continuous testing integrates automated test execution into the CI/CD pipeline so that software is tested at every stage of delivery.
Question 5: Which type of testing validates software from the end-user's perspective based on business requirements?
- Unit Testing
- Integration Testing
- User Acceptance Testing (UAT) (Correct answer)
- White-box Testing
Correct answer: User Acceptance Testing (UAT)
User Acceptance Testing (UAT) verifies that the software meets business requirements and is ready for delivery from the end-user's perspective.
Question 6: What is a 'stub' in the context of software testing?
- An incomplete test case
- A component that provides predefined responses to calls (Correct answer)
- A performance bottleneck
- A type of regression test
Correct answer: A component that provides predefined responses to calls
A stub is a test double that provides predefined answers to calls made during the test, simulating the behavior of dependencies.
What distinguishes smoke testing from regression testing?