TS Test Design & Development 2 — Questions and Answers
Question 1: Which test design technique derives test cases by identifying the minimum and maximum values plus values just inside and outside the boundaries?
- Equivalence partitioning
- Boundary value analysis (Correct answer)
- Decision table testing
- State transition testing
Correct answer: Boundary value analysis
Boundary value analysis targets the edges of equivalence partitions, testing minimum, maximum, and values immediately adjacent to those limits.
Question 2: A test designer wants to ensure every pair of input parameters is tested at least once. Which technique is most appropriate?
- All-combinations testing
- Pairwise testing (Correct answer)
- Each-choice testing
- Base-choice testing
Correct answer: Pairwise testing
Pairwise testing (all-pairs) ensures every combination of two parameter values appears in at least one test case, balancing coverage and efficiency.
Question 3: In a state transition diagram, a 'transition' is best described as:
- A condition that must be true before a state can exist
- An event or action that causes the system to move from one state to another (Correct answer)
- A wait period between states
- The initial configuration of the system under test
Correct answer: An event or action that causes the system to move from one state to another
A transition represents the movement between states triggered by an event, often with an associated guard condition and action.
Question 4: Which coverage criterion requires that every statement in the code is executed at least once?
- Branch coverage
- Statement coverage (Correct answer)
- Condition coverage
- Path coverage
Correct answer: Statement coverage
Statement coverage (also called line coverage) verifies that each executable statement has been exercised by at least one test case.
Question 5: A decision table has 4 binary conditions. How many unique condition combinations are possible?
- 8
- 12
- 16 (Correct answer)
- 4
Correct answer: 16
With 4 binary conditions, there are 2^4 = 16 unique combinations of true/false values.
Question 6: Which of the following BEST describes the purpose of a use case in test design?
- To document defects found during testing
- To describe system interactions between actors and the system to derive test scenarios (Correct answer)
- To specify the hardware configuration for testing
- To define performance benchmarks for the system
Correct answer: To describe system interactions between actors and the system to derive test scenarios
Use cases capture actor-system interactions and serve as a basis for deriving functional test scenarios, including basic and alternative flows.
Question 7: When applying equivalence partitioning to a field that accepts ages 18–65, which of the following is a valid partition?
- Values 1–17 (invalid partition)
- Values 18–65 (valid partition)
- Value 100 (invalid partition)
- All of the above represent valid partitions (Correct answer)
Correct answer: All of the above represent valid partitions
Equivalence partitioning creates both valid and invalid partitions; for age 18–65, the valid partition is 18–65 and invalid partitions include below 18 and above 65.
Which test design technique derives test cases by identifying the minimum and maximum values plus values just inside and outside the boundaries?