Multiple choice technology testing

Which of the following tools would you use to detect a memory leak?

  1. Coverage analysis

  2. Dynamic analysis

  3. State analysis

  4. Memory analysis

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

Memory leaks are dynamic runtime phenomena that can only be detected by analyzing program behavior during execution. Dynamic analysis tools, including memory profilers, monitor memory allocation and deallocation patterns to identify leaks. Static techniques like coverage analysis cannot detect memory leaks.