Istqb Certified Tester Foundation Level CTFL · Free Practice Question Easy

Question 19

Which one of the following is the 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 that have been executed.

  • C

    It is a metric, which is used to calculate and measure the number of statements in the source code that have been executed by test cases that are passed.

  • D

    It is a metric that gives a true/false confirmation if all statements are covered or not.

Reveal correct answer

Correct answer: B

A.

Is not correct: Statement coverage measures the percentage of statements exercised by test cases.

B.

Is correct: statement testing exercises the executable statements in the code. Statement coverage is measured as the number of statements executed by the tests divided by the total number of executable statements in the test object, normally expressed as a percentage.

C.

Is not correct: The coverage does not measure pass/fail.

D.

Is not correct: It is a metric and does not provide true/false statements.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need