QuestionQ33

VerifiedTesting in Agile

A developer has spent three days investigating a system that crashes intermittently. The issue was caused by two coding faults:

  1. A variable was used but had not been defined.
  2. There was a goto statement to an undefined label.
Explanation

Static analysis examines source code without executing it and can identify undefined variable references and goto statements that refer to nonexistent labels.

Community Discussion

No comments yet. Be the first to start the discussion!