CTFL 3.1.2: Explain the value of static testing
K2Syllabus section 3.1.2
3 original PrepBench practice questions for learning objective 3.1.2 of the CTFL 4.0 syllabus. Try the examples below and check each answer against its syllabus reference.
Practice questions
Question 1
Which of the following BEST describes the value of static testing?
- It confirms the software behaves correctly in its target environment before release
- It detects defects in the earliest phases of the SDLC, fulfilling the principle of early testing
- It measures quality characteristics that depend on executing the code, such as performance efficiency
- It identifies the failures the software produces, so the underlying defects can be analysed
Show answer
- It confirms the software behaves correctly in its target environment before releaseConfirming behaviour in an environment requires execution, which static testing does not do.
- Correct answer: It detects defects in the earliest phases of the SDLC, fulfilling the principle of early testingDetecting defects in the earliest phases fulfils the principle of early testing.
- It measures quality characteristics that depend on executing the code, such as performance efficiencyCharacteristics that depend on executing the code are measured by dynamic testing.
- It identifies the failures the software produces, so the underlying defects can be analysedCausing failures and analysing back to the defect is how dynamic testing works.
Static testing can detect defects in the earliest phases of the SDLC, fulfilling the principle of early testing, and can identify defects that dynamic testing cannot find at all. The other three options describe dynamic testing: confirming behaviour in the target environment, measuring characteristics that depend on executing code, and working back from failures to the defects behind them.
Syllabus section 3.1.2
Question 2
Which of the following defects is MOST likely to be found by static testing rather than dynamic testing?
- A memory leak that only appears after hours of operation
- Slow response times under peak load
- A requirement that contradicts another requirement in the same specification
- A failure that occurs only on a specific mobile device
Show answer
- A memory leak that only appears after hours of operationA memory leak appears at runtime over time and needs dynamic testing to surface.
- Slow response times under peak loadSlow response under load is runtime behavior found by dynamic performance testing.
- Correct answer: A requirement that contradicts another requirement in the same specificationContradictory requirements are found directly in the document by static testing.
- A failure that occurs only on a specific mobile deviceA device-specific failure manifests at runtime and requires dynamic testing.
Static testing excels at finding defects directly in work products: contradictory or ambiguous requirements, design flaws, unreachable code, and deviations from standards. Runtime behavior such as performance or device-specific failures requires dynamic testing.
Syllabus section 3.1.2
Question 3
A team introduces requirement reviews after a project in which many defects traced back to unclear requirements. What effect should they expect?
- Dynamic testing will find the same defects later, so the total effort stays the same
- The overall project cost will rise, because the reviews themselves cost time and effort
- Defects will be found at the same rate as before, but earlier in the schedule
- Fewer defects will reach design and code, and less effort will go into fixing them later
Show answer
- Dynamic testing will find the same defects later, so the total effort stays the sameSome defects found statically cannot be detected by dynamic testing at all.
- The overall project cost will rise, because the reviews themselves cost time and effortReviews do cost effort, but overall project costs are usually much lower with them.
- Defects will be found at the same rate as before, but earlier in the scheduleStatic testing finds defect types dynamic testing cannot, so the rate is not unchanged.
- Correct answer: Fewer defects will reach design and code, and less effort will go into fixing them laterFewer defects propagate onward, and less effort is spent fixing them later.
Even though reviews can be costly to implement, overall project costs are usually much lower than when no reviews are performed, because less time and effort needs to be spent on fixing defects later in the project. Static testing also finds defect types that dynamic testing cannot detect at all, so the defects are not simply found later by another means.
Syllabus section 3.1.2
Original PrepBench practice material, not official exam questions or exam dumps. PrepBench is independent and is not affiliated with or endorsed by ISTQB®.