Which one of the following is the BEST description of statement coverage?

  • A. It is a metric which is used to calculate and measure the percentage of test cases that have been executed.
  • B. It is a metric, which is used to calculate and measure the percentage of statements in the source code which have been executed.
  • C. It is a metric, which is used to calculate and measure the number of statements in the source code which have been executed by test cases that are passed.
  • D. It is a metric that give a true/false confirmation if all statements are covered or not.

Answer: Option B