Software Testing Software Testing 4 — Questions and Answers
Question 1: What is 'exploratory testing'?
- Testing using automated scripts without human intervention
- Simultaneous learning, test design, and test execution without pre-scripted tests (Correct answer)
- Testing only the most critical paths in the application
- Running the same tests repeatedly to find intermittent bugs
Correct answer: Simultaneous learning, test design, and test execution without pre-scripted tests
Exploratory testing is an approach where testers simultaneously design and execute tests, using their knowledge and intuition to explore the application.
Question 2: What is 'shift-left testing' in modern software development?
- Moving testing activities earlier in the development lifecycle (Correct answer)
- Shifting test responsibilities from QA to operations
- Testing on the left side of the screen layout first
- Reducing the number of test cases to speed delivery
Correct answer: Moving testing activities earlier in the development lifecycle
Shift-left testing moves testing activities earlier in the SDLC so defects are caught sooner when they are cheaper to fix.
Question 3: Which metric measures the ratio of defects found during testing versus total defects found including post-release?
- Defect density
- Defect leakage
- Defect removal efficiency (Correct answer)
- Defect arrival rate
Correct answer: Defect removal efficiency
Defect Removal Efficiency (DRE) measures the percentage of defects caught during testing before the software reaches production.
Question 4: In agile testing, what are 'acceptance criteria'?
- The performance benchmarks the software must meet
- Conditions that must be satisfied for a user story to be considered complete (Correct answer)
- Criteria for accepting a new team member
- The standards for test case documentation
Correct answer: Conditions that must be satisfied for a user story to be considered complete
Acceptance criteria are specific, measurable conditions that a user story must meet to be accepted by the product owner.
Question 5: What is 'mutation testing' used for?
- Testing how the software handles data mutations in a database
- Evaluating the effectiveness and quality of existing test cases (Correct answer)
- Testing software on different operating system versions
- Checking if the software mutates user data incorrectly
Correct answer: Evaluating the effectiveness and quality of existing test cases
Mutation testing introduces small changes (mutations) to source code and checks whether existing tests detect these changes, evaluating test suite quality.
Question 6: What is a 'test harness' in software testing?
- A physical device for connecting hardware test equipment
- A collection of software and data configured to test a program under varying conditions (Correct answer)
- A safety belt testers wear during long test sessions
- A documentation template for test cases
Correct answer: A collection of software and data configured to test a program under varying conditions
A test harness is a framework of software tools and test data that automates the execution of tests and compares actual versus expected outcomes.
Question 7: Which approach in integration testing starts testing from the lowest-level modules first?
- Top-down integration
- Bottom-up integration (Correct answer)
- Big bang integration
- Sandwich integration
Correct answer: Bottom-up integration
Bottom-up integration testing starts with the lowest-level modules and progressively integrates and tests higher-level modules.
What is 'exploratory testing'?