Which ONE of the following options MOST ACCURATELY describesstatement testing?
A.
In statement testing, the coverage items are control flow transfers between branches. The aim is to design test cases to exercise branches in the code until an acceptable level of coverage is achieved, expressed as a percentage.
B.
In statement testing, the coverage items are decisions and statements. The aim is to design test cases that exercise statements in the code until an acceptable level of coverage is achieved, expressed as a percentage.
C.
In statement testing, the coverage items are branches, and the aim is to design test cases to exercise branches in the code until an acceptable level of coverage is achieved, expressed as a percentage.
D.
In statement testing, the coverage items are executable statements. The aim is to design test cases that exercise statements in the code until an acceptable level of coverage is achieved, expressed as a percentage.
The Answer Is:
D
This question includes an explanation.
Explanation:
Comprehensive and Detailed In-Depth Explanation:Statement testingaims to executeevery executable statementin the source code at least once.
(D) is correctas statement testing ensuresmaximum statement execution.
(A) describes branch testing, which focuses on flow transfers.
(B) and (C) incorrectly mix decision testing and branch testing concepts.