TS Test Design & Development 3 — Questions and Answers
Question 1: Which white-box testing technique requires that every branch (true and false) from each decision point be executed at least once?
- Statement coverage
- Branch coverage (Correct answer)
- Path coverage
- Condition coverage
Correct answer: Branch coverage
Branch coverage (decision coverage) requires that every possible outcome—true and false—of every branch in the code is exercised.
Question 2: A tester is designing tests for a login screen using a classification tree. What does each leaf node of the tree represent?
- A test environment
- A specific value or sub-class for a given classification (Correct answer)
- A defect category
- A test execution step
Correct answer: A specific value or sub-class for a given classification
In a classification tree, leaf nodes represent concrete values or sub-classes that can be combined with leaves from other branches to form test cases.
Question 3: Which term refers to the degree to which a test design technique systematically covers the test basis?
- Test depth
- Coverage criterion (Correct answer)
- Test oracle
- Risk exposure
Correct answer: Coverage criterion
A coverage criterion defines what must be exercised in the test basis (e.g., statements, branches, partitions) to consider the testing sufficient.
Question 4: In exploratory testing, a test charter primarily serves to:
- Document defects in a structured format
- Provide a time-boxed mission guiding the tester's investigation (Correct answer)
- Replace formal test case documentation
- Automate regression test scenarios
Correct answer: Provide a time-boxed mission guiding the tester's investigation
A test charter defines the scope, goal, and focus of an exploratory testing session, helping testers remain mission-directed within a time box.
Question 5: Which of the following is the PRIMARY advantage of using cause-effect graphing before creating a decision table?
- It eliminates the need for equivalence partitioning
- It systematically identifies logical relationships between inputs and outputs before building the table (Correct answer)
- It automatically generates test scripts
- It reduces the number of states in a state machine
Correct answer: It systematically identifies logical relationships between inputs and outputs before building the table
Cause-effect graphing visually maps the logical relationships between causes (inputs) and effects (outputs), ensuring the decision table captures all relevant combinations.
Question 6: A test design specification document should PRIMARILY contain:
- Defect reports and severity ratings
- Test conditions, test cases, and test data requirements derived from the test basis (Correct answer)
- Project schedule and resource allocation
- Automated script code for each test case
Correct answer: Test conditions, test cases, and test data requirements derived from the test basis
A test design specification documents the test conditions identified from the test basis and the test cases that will verify them, along with required test data.
Question 7: When selecting a black-box test design technique, which factor is MOST influential in choosing between equivalence partitioning and boundary value analysis?
- The number of testers available
- Whether the test basis specifies ranges or ordered values that have meaningful boundaries (Correct answer)
- The programming language used in the application
- Whether the defect tracking tool supports the technique
Correct answer: Whether the test basis specifies ranges or ordered values that have meaningful boundaries
Boundary value analysis adds most value when the specification defines ranges or ordered sets, making the edges between partitions particularly defect-prone.
Which white-box testing technique requires that every branch (true and false) from each decision point be executed at least once?