Machine-translated by Google. Questions are authored in English.
Top

Discussion

Static analysis complements code review by

  • A.checking mechanically for defects a reader would tire of looking for
  • B.verifying that the design as a whole meets its stated requirements
  • C.measuring the execution time of each function
  • D.confirming that the build is reproducible

Answer: A

Correct answer: checking mechanically for defects a reader would tire of looking for

A tool checks every path in every function without fatigue - uninitialised variables, unreachable code, missing break statements, possible overflows, violations of a coding standard. A reviewer is far better at judgement: whether the design is right, whether the code will be understood in a year. The two are complementary because each is weak where the other is strong.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.