Developing Applications Using Cisco Core Platforms and APIs (DEVCOR) — Question 13
Which two statements describe advantages of static code analysis over unit tests? (Choose two.)
Answer options
- A. It checks for potential tainted data where input is not checked.
- B. It enforces proper coding standards and style.
- C. It performs a quick analysis of whether tests will pass or fail when run.
- D. It checks for race conditions in threaded applications.
- E. It estimates the performance of the code when run.
Correct answer: A, B
Explanation
The correct answers, A and B, highlight that static code analysis is effective in identifying potential issues with unchecked inputs and ensuring coding standards are maintained. Options C, D, and E pertain more to the functionality of unit tests or dynamic analysis, rather than the specific advantages of static code analysis.