B.S.W.E. Bachelor of Software Engineering Software Testing & Quality Assurance 2 — Questions and Answers
Question 1: What is a test fixture in software testing?
- A physical device used for hardware testing
- Fixed state or setup used as a baseline for running tests (Correct answer)
- A standardized bug report template
- A performance benchmark tool
Correct answer: Fixed state or setup used as a baseline for running tests
A test fixture is a fixed, consistent state or environment (data, objects, resources) that tests run against to ensure reproducible results.
Question 2: What is mocking in software testing?
- Criticizing poor code quality in review
- Creating fake objects that simulate real dependencies for isolated testing (Correct answer)
- Running tests on simulated hardware environments
- Generating large volumes of fake performance data
Correct answer: Creating fake objects that simulate real dependencies for isolated testing
Mocking creates fake implementations of dependencies like databases or APIs so that unit tests run in isolation without real external systems.
Question 3: What is stress testing in software QA?
- Testing code readability and maintainability
- Testing system behavior under extreme load or resource constraints (Correct answer)
- Testing error message clarity and accuracy
- Testing developer onboarding processes
Correct answer: Testing system behavior under extreme load or resource constraints
Stress testing evaluates system behavior when pushed beyond normal operating conditions to identify failure points and breaking limits.
Question 4: What is the difference between verification and validation in software QA?
- Verification is automated; validation is manual testing
- Verification checks the product is built right; validation checks the right product was built (Correct answer)
- Verification applies to code; validation applies to databases
- They are synonymous terms used interchangeably
Correct answer: Verification checks the product is built right; validation checks the right product was built
Verification ensures the product conforms to specifications, while validation ensures the product actually meets real user needs and requirements.
Question 5: What is the bug life cycle in software testing?
- The total time a bug exists in a production system
- The series of stages a defect passes through from discovery to resolution (Correct answer)
- The number of times a bug can be reproduced in testing
- The severity and priority rating assigned to a bug
Correct answer: The series of stages a defect passes through from discovery to resolution
The bug life cycle describes stages a defect moves through: New, Assigned, Open, Fixed, Retest, and Closed (or Reopened if the fix fails).
Question 6: What is exploratory testing?
- Testing only features added in the most recent sprint
- Unscripted testing where testers explore the application using their own judgment (Correct answer)
- Testing an application across multiple device types
- Automated regression testing of the entire feature set
Correct answer: Unscripted testing where testers explore the application using their own judgment
Exploratory testing is simultaneous learning, test design, and execution where skilled testers explore the application without predefined scripts.
What is a test fixture in software testing?