ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 271 - CTFL4 discussion

Report
Export

Which of the following best describes the way in which statement coverage is measured?

A.
Measured as the number of decision outcomes executed by the tests, divided by the total number of decision outcomes in the test object.
Answers
A.
Measured as the number of decision outcomes executed by the tests, divided by the total number of decision outcomes in the test object.
B.
It is not possible to accurately measure statement coverage.
Answers
B.
It is not possible to accurately measure statement coverage.
C.
Measured as the number of statements executed by the tests, divided by the total number of executable statements in the code.
Answers
C.
Measured as the number of statements executed by the tests, divided by the total number of executable statements in the code.
D.
Measured as the number of lines of code executed by the test, divided by the total number of lines of code in the test object.
Answers
D.
Measured as the number of lines of code executed by the test, divided by the total number of lines of code in the test object.
Suggested answer: C

Explanation:

Statement coverage is a metric used in white-box testing that measures the percentage of executable statements in the code that have been executed by the test cases. It is calculated as the number of statements executed by the tests divided by the total number of executable statements in the code, providing an indication of how much of the code has been tested.

asked 18/09/2024
Chris Bezuidenhout
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first