Multiple choice technology testing

Set-Use pairs are identified during which of the following static analysis activities?

  1. Control Flow analysis

  2. Data flow analysis

  3. Coding standards analysis

  4. Cyclomatic complexity analysis

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Set-Use pairs are fundamental to data flow analysis, which tracks how variables are assigned (set) and subsequently used (referenced) through a program. This analysis identifies potential defects like using uninitialized variables, variables used after being freed, or redundant computations. Control flow analysis examines execution paths, coding standards check style, and cyclomatic complexity measures structural complexity.