The flow graph below shows the logic of a program for which 100% statement coverage and 100% decision coverage is required on exit from component testing. [K4]

Posted by: Pdfprep Category: CTFL_Syll2018 Tags: , ,

The flow graph below shows the logic of a program for which 100% statement coverage and 100% decision coverage is required on exit from component testing. [K4]

The following test cases have been run:

Test Case 1 covering path P,Q,R,U

Test Case 2 covering path P,Q,S,V

Test Case 3 covering path P,Q,S,W,X

Test case 4 covering path P,Q,S,W,Y

Refer to the exhibit
A . Statement coverage is 100%; decision coverage is 100%
B . Statement coverage is less than 100%; decision coverage is 100%.
C . Statement coverage is 100%; decision coverage is less than 100%
D . Statement coverage and decision coverage are both less than 100%

Answer: D

Leave a Reply

Your email address will not be published.