Statement Coverage - Example - Structure based testing techniques

Q.  How many inputs are required for 100% Statement Coverage?

Read customer_name
Read record
If age < 18 then
Print Reject customer
Else
Print accept customer
Endif

- Published on 14 Aug 15

a. 1
b. 2
c. 3
d. 4

ANSWER: 1

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)