PTE · Reading · medium
Read the text and answer the multiple-choice question by selecting the correct response. Only one response is correct.
Static program analysis has become a foundational methodology in software engineering research and automated code quality assurance. Unlike dynamic testing, which requires compiling and executing source code with specific input test suites, static analyzers inspect the abstract syntax trees and control flow graphs of software without running it. This structural examination allows tools to systematically explore every theoretical execution pathway, uncovering latent concurrency flaws, memory leaks, and security vulnerabilities that conventional unit testing often fails to trigger. However, this exhaustive coverage comes at a significant methodological cost: the pervasive problem of false positives. Because determining whether an arbitrary program execution path is mathematically feasible is computationally undecidable—a fundamental limitation rooted in the halting problem—static tools must rely on conservative approximations and heuristic abstractions. As a result, analyzers frequently flag benign code constructs as potential catastrophic errors. When development teams are inundated with thousands of spurious warnings, alert fatigue sets in, often causing engineers to ignore critical warnings alongside the irrelevant notifications.
According to the passage, what is a major drawback of static code analysis?
- It often generates numerous ungrounded error warnings that overwhelm software engineers.
- It cannot detect vulnerabilities unless the source code is compiled and executed in real time.
- It examines only a small fraction of the execution paths available in complex software programs.
- It is incapable of evaluating control flow graphs or abstract syntax representations.
- It relies entirely on manually designed unit test suites provided by developers.