Certified Tester Foundation Level (CTFL) v4.0 CTFL v4.0 Practice Test 47
Question 460
When responding to 'A component runs 18 of 24 executable statements in its test suite, but the team reports 100 percent coverage.', what important boundary should accompany 'Calculate executed statements divided by total executable statements and identify unexecuted statements.'?
- An untestable statement cannot reliably serve as a signoff condition.
- Statement coverage cannot establish that all decision outcomes were taken.
- Branch coverage is not the same as exhaustive path coverage.
- Executing every statement does not necessarily exercise every decision outcome.
Explanation
Correct Answer
B:Correct. This boundary remains necessary even after the team performs Calculate executed statements divided by total executable statements and identify unexecuted statements. The relevant acceptance observation is The report accurately shows 75 percent statement coverage with six statements still unexecuted.
Incorrect Answers
A:This precaution addresses the separate condition 'A team writes acceptance criteria only as 'The application should be intuitive and fast.'', not the main collateral risk of Calculate executed statements divided by total executable statements and identify unexecuted statements. The applicable boundary is Statement coverage cannot establish that all decision outcomes were taken.
C:The proposed safeguard concerns Branch coverage is exercised branch outcomes divided by total branch outcomes. The current case instead requires respecting Statement coverage cannot establish that all decision outcomes were taken.
D:This precaution addresses the separate condition 'A discount condition has both true and false outcomes, but tests exercise only the true outcome.', not the main collateral risk of Calculate executed statements divided by total executable statements and identify unexecuted statements. The applicable boundary is Statement coverage cannot establish that all decision outcomes were taken.
Question 461
An ISTQB Foundation Level candidate reviews this case: A discount condition has both true and false outcomes, but tests exercise only the true outcome. Which testing concept BEST explains the main quality-control concern?
- Branch testing and coverage: Branch coverage requires exercising each possible control-flow branch outcome.
- Statement testing and coverage: Statement coverage is the fraction of executable statements exercised, not the number of passing assertions.
- Statement testing and coverage: A high statement metric can conceal missing decision outcomes in the same code.
- Statement testing and coverage: Statement coverage measures exercised executable code statements, irrespective of pass/fail test verdict counts.
Explanation
Correct Answer
A:Correct. The example illustrates Branch testing and coverage: Branch coverage requires exercising each possible control-flow branch outcome. A distinguishing result is The coverage report shows both branches executed by the selected tests.
Incorrect Answers
B:“Statement testing and coverage: Statement coverage is the fraction of executable statements exercised, not the number of passing assertions” is relevant to another testing situation: A component runs 18 of 24 executable statements in its test suite, but the team reports 100 percent coverage. The current case is explained more directly by “Branch testing and coverage: Branch coverage requires exercising each possible control-flow branch outcome”.
C:“Statement testing and coverage: A high statement metric can conceal missing decision outcomes in the same code” is relevant to another testing situation: A test suite produces high statement coverage but avoids an important validation branch. The current case is explained more directly by “Branch testing and coverage: Branch coverage requires exercising each possible control-flow branch outcome”.
D:“Statement testing and coverage: Statement coverage measures exercised executable code statements, irrespective of pass/fail test verdict counts” is relevant to another testing situation: A developer confuses statement coverage with counting all test scripts that completed successfully. The current case is explained more directly by “Branch testing and coverage: Branch coverage requires exercising each possible control-flow branch outcome”.
Question 462
An ISTQB CTFL assessment describes: A discount condition has both true and false outcomes, but tests exercise only the true outcome. Which diagnosis fits the case most specifically?
- Statement coverage measures exercised executable code statements, irrespective of pass/fail test verdict counts.
- Branch coverage requires exercising each possible control-flow branch outcome.
- Structural code and branch information guide white-box testing.
- Statement coverage is the fraction of executable statements exercised, not the number of passing assertions.
Explanation
Correct Answer
B:Correct. The causal testing rationale is Branch coverage requires exercising each possible control-flow branch outcome. The relevant action is Add a test where the discount condition is false and record both outcomes. Evidence should show The coverage report shows both branches executed by the selected tests.
Incorrect Answers
A:“Statement coverage measures exercised executable code statements, irrespective of pass/fail test verdict counts” belongs to a different testing problem with this response: Instrument code and report executed unique statements against all executable statements. The current question instead supports “Branch coverage requires exercising each possible control-flow branch outcome”.
C:This describes a different testing issue: A developer selects inputs after inspecting a boolean branch that is not reached by existing tests. The actual observation is more directly explained by Branch coverage requires exercising each possible control-flow branch outcome.
D:“Statement coverage is the fraction of executable statements exercised, not the number of passing assertions” belongs to a different testing problem with this response: Calculate executed statements divided by total executable statements and identify unexecuted statements. The current question instead supports “Branch coverage requires exercising each possible control-flow branch outcome”.
Question 463
An ISTQB Foundation scenario states: A discount condition has both true and false outcomes, but tests exercise only the true outcome. How should the team proceed?
- Add a test that triggers the relevant error path and observes the expected result.
- Use explicit precondition, event and observable outcome in the scenario-based rule.
- Use branch analysis in addition to statement coverage for the conditional behavior.
- Add a test where the discount condition is false and record both outcomes.
Explanation
Correct Answer
D:Correct. This action addresses the precise issue because Branch coverage requires exercising each possible control-flow branch outcome. Its observable acceptance result is The coverage report shows both branches executed by the selected tests.
Incorrect Answers
A:The suggested action addresses 'Statement testing can reveal unexecuted code but does not prove its behavior is correct.', a separate fault. The present situation calls for Add a test where the discount condition is false and record both outcomes.
B:This step would help the different situation 'A team documents 'Given a customer has verified identity, when a withdrawal is submitted, then approval is recorded.'', not the case here. The stated problem requires Add a test where the discount condition is false and record both outcomes.
C:The suggested action addresses 'A high statement metric can conceal missing decision outcomes in the same code.', a separate fault. The present situation calls for Add a test where the discount condition is false and record both outcomes.
Question 464
For this condition—A discount condition has both true and false outcomes, but tests exercise only the true outcome.—the selected response is 'Add a test where the discount condition is false and record both outcomes.'. Which result should validate it?
- The coverage report shows both branches executed by the selected tests.
- The coverage percentage changes when previously unexecuted code runs, not merely when more tests pass.
- The missing refund rule is identified from the test basis despite full branch coverage.
- The report accurately shows 75 percent statement coverage with six statements still unexecuted.
Explanation
Correct Answer
A:Correct. This evidence validates the claimed response (Add a test where the discount condition is false and record both outcomes.). The underlying testing issue was Branch coverage requires exercising each possible control-flow branch outcome.
Incorrect Answers
B:“The coverage percentage changes when previously unexecuted code runs, not merely when more tests pass” examines the separate dependency that statement coverage measures exercised executable code statements, irrespective of pass/fail test verdict counts. The directly applicable result for this question is “The coverage report shows both branches executed by the selected tests”.
C:This result may validate another scenario: A public web API has complete branch coverage but omits a legally required refund policy. It does not prove the current fix Add a test where the discount condition is false and record both outcomes. achieved its intended effect of The coverage report shows both branches executed by the selected tests.
D:“The report accurately shows 75 percent statement coverage with six statements still unexecuted” examines the separate dependency that statement coverage is the fraction of executable statements exercised, not the number of passing assertions. The directly applicable result for this question is “The coverage report shows both branches executed by the selected tests”.
Question 465
When responding to 'A discount condition has both true and false outcomes, but tests exercise only the true outcome.', what important boundary should accompany 'Add a test where the discount condition is false and record both outcomes.'?
- Running every statement once does not imply full path or requirement coverage.
- Statement coverage cannot establish that all decision outcomes were taken.
- Executing every statement does not necessarily exercise every decision outcome.
- Passing tests and exercised statements are different measurements.
Explanation
Correct Answer
C:Correct. The safeguard prevents an unsafe or overstated outcome during Add a test where the discount condition is false and record both outcomes. The source issue is Branch coverage requires exercising each possible control-flow branch outcome.
Incorrect Answers
A:The proposed safeguard concerns Statement testing can reveal unexecuted code but does not prove its behavior is correct. The current case instead requires respecting Executing every statement does not necessarily exercise every decision outcome.
B:This precaution addresses the separate condition 'A component runs 18 of 24 executable statements in its test suite, but the team reports 100 percent coverage.', not the main collateral risk of Add a test where the discount condition is false and record both outcomes. The applicable boundary is Executing every statement does not necessarily exercise every decision outcome.
D:The proposed safeguard concerns Statement coverage measures exercised executable code statements, irrespective of pass/fail test verdict counts. The current case instead requires respecting Executing every statement does not necessarily exercise every decision outcome.
Question 466
An ISTQB Foundation Level candidate reviews this case: A developer uses code-coverage reports to locate untested exception handling that is missing from all functional cases. Which testing concept BEST explains the main quality-control concern?
- Distinguishing black-box, white-box and experience-based techniques: Specification-derived partitions are a black-box technique because they do not require internal program structure.
- Value and limitations of white-box testing: White-box measurements can reveal structural gaps invisible in specification-based cases.
- Distinguishing black-box, white-box and experience-based techniques: Historical defect experience can guide error guessing without a complete formal specification.
- Distinguishing black-box, white-box and experience-based techniques: Exploratory testing combines learning, test design and execution dynamically.
Explanation
Correct Answer
B:Correct. White-box measurements can reveal structural gaps invisible in specification-based cases. This matches the official objective 'FL-4.3.3' about Value and limitations of white-box testing. A practical response is Examine structural coverage and add tests of the high-risk missed exception path.
Incorrect Answers
A:“Distinguishing black-box, white-box and experience-based techniques: Specification-derived partitions are a black-box technique because they do not require internal program structure” is relevant to another testing situation: A web-service tester designs cases solely from the published allowed age bands and expected outcomes. The current case is explained more directly by “Value and limitations of white-box testing: White-box measurements can reveal structural gaps invisible in specification-based cases”.
C:“Distinguishing black-box, white-box and experience-based techniques: Historical defect experience can guide error guessing without a complete formal specification” is relevant to another testing situation: A veteran tester suspects passwords containing whitespace will expose defects based on past incidents. The current case is explained more directly by “Value and limitations of white-box testing: White-box measurements can reveal structural gaps invisible in specification-based cases”.
D:“Distinguishing black-box, white-box and experience-based techniques: Exploratory testing combines learning, test design and execution dynamically” is relevant to another testing situation: A tester navigates unfamiliar account recovery behavior under a charter, adapting the next action to each observation. The current case is explained more directly by “Value and limitations of white-box testing: White-box measurements can reveal structural gaps invisible in specification-based cases”.
Question 467
An ISTQB CTFL assessment describes: A developer uses code-coverage reports to locate untested exception handling that is missing from all functional cases. Which diagnosis fits the case most specifically?
- Historical defect experience can guide error guessing without a complete formal specification.
- White-box measurements can reveal structural gaps invisible in specification-based cases.
- Structural code and branch information guide white-box testing.
- Specification-derived partitions are a black-box technique because they do not require internal program structure.
Explanation
Correct Answer
B:Correct. This cause directly explains the supplied situation: White-box measurements can reveal structural gaps invisible in specification-based cases. Confirm the response by checking that A previously unexecuted exception path is identified and evaluated.
Incorrect Answers
A:This describes a different testing issue: A veteran tester suspects passwords containing whitespace will expose defects based on past incidents. The actual observation is more directly explained by White-box measurements can reveal structural gaps invisible in specification-based cases.
C:“Structural code and branch information guide white-box testing” belongs to a different testing problem with this response: Classify the selection as white-box because internal control flow drives the case choice. The current question instead supports “White-box measurements can reveal structural gaps invisible in specification-based cases”.
D:This describes a different testing issue: A web-service tester designs cases solely from the published allowed age bands and expected outcomes. The actual observation is more directly explained by White-box measurements can reveal structural gaps invisible in specification-based cases.
Question 468
An ISTQB Foundation scenario states: A developer uses code-coverage reports to locate untested exception handling that is missing from all functional cases. How should the team proceed?
- Use branch analysis in addition to statement coverage for the conditional behavior.
- Express each relevant business-rule combination and its expected result in a structured table.
- Examine structural coverage and add tests of the high-risk missed exception path.
- Set expectations for coverage and record actual tests rather than enforcing imaginary precision.
Explanation
Correct Answer
C:Correct. CTFL expects this practical response when White-box measurements can reveal structural gaps invisible in specification-based cases. The team can validate it by seeing A previously unexecuted exception path is identified and evaluated.
Incorrect Answers
A:This step would help the different situation 'A test suite produces high statement coverage but avoids an important validation branch.', not the case here. The stated problem requires Examine structural coverage and add tests of the high-risk missed exception path.
B:The suggested action addresses 'An input-output table or bullet verification list is a rule-oriented acceptance criterion format.', a separate fault. The present situation calls for Examine structural coverage and add tests of the high-risk missed exception path.
D:This step would help the different situation 'A manager expects identical test sequences from all testers using a high-level acceptance checklist.', not the case here. The stated problem requires Examine structural coverage and add tests of the high-risk missed exception path.
Question 469
For this condition—A developer uses code-coverage reports to locate untested exception handling that is missing from all functional cases.—the selected response is 'Examine structural coverage and add tests of the high-risk missed exception path.'. Which result should validate it?
- The coverage percentage changes when previously unexecuted code runs, not merely when more tests pass.
- Test inputs can be mapped to specific previously unexercised control-flow branches.
- A previously unexecuted exception path is identified and evaluated.
- The previously missed error handler executes under a controlled test.
Explanation
Correct Answer
C:Correct. The observation proves the testing activity addressed White-box measurements can reveal structural gaps invisible in specification-based cases. This is more meaningful than a status report without evidence of A previously unexecuted exception path is identified and evaluated.
Incorrect Answers
A:This result may validate another scenario: A developer confuses statement coverage with counting all test scripts that completed successfully. It does not prove the current fix Examine structural coverage and add tests of the high-risk missed exception path. achieved its intended effect of A previously unexecuted exception path is identified and evaluated.
B:“Test inputs can be mapped to specific previously unexercised control-flow branches” examines the separate dependency that structural code and branch information guide white-box testing. The directly applicable result for this question is “A previously unexecuted exception path is identified and evaluated”.
D:This result may validate another scenario: A service contains a rarely used error-handling statement that no test reaches. It does not prove the current fix Examine structural coverage and add tests of the high-risk missed exception path. achieved its intended effect of A previously unexecuted exception path is identified and evaluated.
Question 470
When responding to 'A developer uses code-coverage reports to locate untested exception handling that is missing from all functional cases.', what important boundary should accompany 'Examine structural coverage and add tests of the high-risk missed exception path.'?
- Unstructured random input selection should not be mislabeled a complete experience-based strategy.
- A black-box technique can be applied at component or system level.
- Structural coverage should complement rather than replace business-focused black-box testing.
- Branch coverage is not the same as exhaustive path coverage.
Explanation
Correct Answer
C:Correct. This boundary remains necessary even after the team performs Examine structural coverage and add tests of the high-risk missed exception path. The relevant acceptance observation is A previously unexecuted exception path is identified and evaluated.
Incorrect Answers
A:This precaution addresses the separate condition 'A team selects random test values with no relation to history or risk and calls that error guessing.', not the main collateral risk of Examine structural coverage and add tests of the high-risk missed exception path. The applicable boundary is Structural coverage should complement rather than replace business-focused black-box testing.
B:The proposed safeguard concerns Specification-derived partitions are a black-box technique because they do not require internal program structure. The current case instead requires respecting Structural coverage should complement rather than replace business-focused black-box testing.
D:This precaution addresses the separate condition 'A service has 12 reachable branch outcomes, of which tests execute 9.', not the main collateral risk of Examine structural coverage and add tests of the high-risk missed exception path. The applicable boundary is Structural coverage should complement rather than replace business-focused black-box testing.