ITPEC FE Subject A April 2025 Question 36
Which of the following is an explanation of a software testing tool corresponding to a static analysis tool that supports static testing?
Explanation
Analysing the source code for grammatical and logical errors — a static analysis tool examines a program without running it.
A static analysis tool reads the source code and reports syntax errors, suspect logic such as unreachable code or variables used before they are set, violations of coding standards, and complexity measures. Because nothing is executed, it supports static testing and can be used before the program is ever run.
Answer (c)
Why not others:
- •(a) — measuring call frequency and execution time during a run is what a profiler does, a dynamic analysis tool
- •(b) — coverage measured from test execution results requires running the program, so it is a dynamic tool (a coverage analyser)
- •(d) — generating test data and input files is a test data generator, which prepares input for executing tests rather than analysing the code
Key rule: Static tools inspect code without executing it; any tool that measures behaviour during a run is dynamic.
System Development Technology · AI-written, may contain errors
This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official FE past-paper collection or Report an issue.