nerdexam
Scrum

PSD · Question #110

What does code coverage show?

The correct answer is C. Code being exercised by tests. The ratio answer is wrong, because it doesn't say anything about the number of tests to lines of code, but it does say the percentage of lines of code that is being tested. Hence, the correct answer is code being exercised by tests.

Test Driven Development

Question

What does code coverage show?

Options

  • AThe ratio of the number of tests to lines of code in the system being tested
  • BThe quality of unit tests being written
  • CCode being exercised by tests
  • DThe absence of defects in code
  • EWhen a feature is done

How the community answered

(54 responses)
  • A
    2% (1)
  • B
    6% (3)
  • C
    91% (49)
  • D
    2% (1)

Explanation

The ratio answer is wrong, because it doesn't say anything about the number of tests to lines of code, but it does say the percentage of lines of code that is being tested. Hence, the correct answer is code being exercised by tests.

Topics

#code coverage#testing metrics#test execution

Community Discussion

No community discussion yet for this question.

Full PSD Practice