Which of the following is a benefit of static analysis?

Các đáp án

A.Defects can be identified that might not be caught by dynamic testing
B.Early defect identification requires less documentation
C.Early execution of the code provides a gauge of code quality
D.Tools are not needed because reviews are used instead of executing code

Đáp án đúng

A: Defects can be identified that might not be caught by dynamic testing

Giải thích

A is correct, per syllabus. Static analysis with a static analyzer can be used to find defects such as uninitialized variables that could be difficult to catch with dynamic testing. B is incorrect because defects will still need to be documented regardless of how early they are found. C is incorrect because this is dynamic analysis. D is incorrect because static analysis usually requires the use of tools.

Câu hỏi khác trong đề thi này