True or false: Passing test cases proves that a program contains no defects.
7 Software Testing and Quality Online Quiz Questions
Use this free practice quiz with 20 questions to review 7 Software Testing and Quality, test your knowledge, and prepare for your next test or exam.
True or false: High code coverage by itself demonstrates that a program behaves correctly.
- A
True
- B
False
What process-oriented, preventive discipline improves the practices used to develop and test software?
A team tests whether its product correctly connects to an external payment provider. What test level is this?
To reduce the number of tests, a team divides inputs into groups expected to behave alike and tests representative values from each group. This technique is .
After a test exposes a failure, the team investigates and removes the defect's cause. This activity is .
A discount applies to purchases of at least 10 items. Which set of test inputs is most useful for detecting an off-by-one defect at the threshold?
- A
Test only 1 and 20 items, since they are far apart.
- B
Test 9, 10, and 11 items, since they are at and near the threshold.
- C
Test 10 items repeatedly, since it is the qualifying value.
- D
Test only values below 10, since those are invalid.
A team frequently checks stable behavior after code changes, but also needs to investigate unclear usability concerns. Which approach best uses automation?
- A
Automate all testing so that human evaluation is unnecessary.
- B
Avoid automation because automated checks always require more effort than manual checks.
- C
Automate repeatable regression checks, while using human investigation for exploratory and usability questions.
- D
Automate only tests that are run once, and perform repeated checks manually.
A team checks whether a shopping cart correctly passes item totals to the product's payment component. Which test level best fits this check?
- A
Component integration testing
- B
System testing
- C
System integration testing
- D
Acceptance testing
A team checks whether an unpaid order can be cancelled and what happens if cancellation is attempted after the order has shipped. Which test design technique best fits?
- A
Equivalence partitioning
- B
Structure-based testing
- C
Boundary-value analysis
- D
State-transition testing
Select all the practices that primarily support process-oriented, preventive quality assurance.
- A
Review requirements to find ambiguity before development proceeds.
- B
Run a single end-to-end test to judge whether the finished product meets a requirement.
- C
Use consistent development and test processes across the team.
- D
Hold retrospectives to identify ways to improve the team's process.
After fixing a reported defect, select all the appropriate testing actions.
- A
Run a confirmation test to check that the fix resolves the reported issue.
- B
Skip all tests after the fix if the code change is small.
- C
Run regression tests to check that existing behavior still works.
- D
Repeat only the steps that originally revealed the defect, without checking other behavior.
An automated test suite sometimes passes or fails depending on which test runs first. Explain why shared mutable data or execution-order dependencies cause this problem, and describe one practice that can make the tests more repeatable.
True or false: Passing tests prove that a program is defect-free.
- A
True
- B
False
A team repeatedly finds failures caused by ambiguous requirements. Which action is the clearest example of quality assurance?
- A
Add more product tests to find each ambiguous requirement after implementation.
- B
Improve the requirements review process to catch ambiguity earlier.
- C
Run regression tests after every release without changing development practices.
- D
Ask testers to take sole responsibility for preventing defects.
A discount applies to purchases of at least 10 items. Which test set most directly applies boundary-value analysis?
- A
Use only a typical purchase of 15 items.
- B
Test several purchases with fewer than 10 items.
- C
Test purchases of 9, 10, and 11 items.
- D
Test every possible purchase size.
A developer tests one tax-calculation function in isolation to check its result for a given price. What testing level is this?
A test checks whether a shopping cart passes item totals correctly to the product's payment component. Which test level is the best fit?
- A
Component integration testing
- B
System integration testing
- C
Acceptance testing
- D
Component (unit) testing
A team needs to test how membership status and order value together determine a discount. Which test-design technique is specifically suited to organizing these condition-and-outcome combinations?
A tester checks whether an unpaid order can be cancelled and what happens if cancellation is attempted after the order has shipped. Which test-design technique best fits?
- A
Boundary-value analysis
- B
Structure-based testing
- C
Equivalence partitioning
- D
State-transition testing