ITPEC FE Morning April 2018 Question 18

Source exam: ITPEC FE Morning April 2018Topic: Software Development

ITPEC FE Morning April 2018 — Question 18 of 80

Static vs Dynamic Test Tools — static analysis examines source code without execution.

A static test tool analyzes the source code to detect errors without running the program (e.g., linters, code review tools, static analyzers).

A dynamic test tool requires program execution to perform its function.

Why (b) is correct:
- Detecting errors by analyzing source code = static analysis (no execution needed)

Why not others:
- (a) Calculating coverage from executed paths — requires running the program → dynamic

- (c) Generating a driver or stub — used for unit testing with execution → dynamic

- (d) Generating test data for a specific path — requires execution context → dynamic

Key rule: Static = no execution (code review, linting, formal verification). Dynamic = execution required (testing, coverage, profiling).

AI-generated — may contain errors

The original exam layout is preserved in the image so diagrams, formulas, tables, and code remain accurate.

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.