ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 279 - CTFL4 discussion

Report
Export

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

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

Explanation:

Decision coverage, also known as branch coverage, is measured as the number of decision outcomes executed by the tests divided by the total number of decision outcomes in the test object. It ensures that every possible branch (true/false) decision in the code has been executed at least once.

Reference: ISTQB CTFL Syllabus V4.0, Section 4.3.2

asked 18/09/2024
Christopher Harden
46 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first