Monday, 21 December 2015

Given the following code, which statement is true about the minimum number of test cases required for full statement and branch coverage?

Read p
 Read q
 IF p+q> 100
 THEN Print "Large"
 ENDIF
 IF p > 50
 THEN Print "p Large"
 ENDIF
1 test for statement coverage, 2 for branch coverage

No comments:

Post a Comment