CS FundamentalsModerateTCS NQT · HCL

A program has 240 executable statements and the current suite covers 180 of them. A new test executes 40 statements, 25 of which were previously uncovered. What is the new statement coverage?

  1. A. 91.7%
  2. B. 79.2%
  3. C. 85.4%
  4. D. 83.3%

Correct answer: C. 85.4%

Covered = 180 + 25 = 205 (the other 15 were already covered), and 205/240 ≈ 85.4%. 91.7% wrongly adds all 40 statements.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic