Topic 3, Bonus Program
Which of the following is a valid way to calculate the cyclomatic complexity?
A. Number of decisions + 2
B. Number of enclosed regions - 1
C. Number of statements - 2
D. Links - Nodes + 2
The developers have suggested test set A is adequate to test the program opposite:
When executing test set A through the program which statements are exercised?
B. Al , but statement 22
C. Al , but statement 27, 28 and 29
D. Al , but statement 22, 27, 28 and 29
What is the value of statement coverage achieved by test case 1 from test set A?
A. ? 75% (21/28)
B. ? 78% (22/28)
C. ? 85% (24/28)
D. ? 90% (25/28)
Which additional set of test cases is needed to achieve both 100% statement coverage and