Question: Read the following function code carefully and then: 1) Calculate the adequacy of the test cases given below in light of the Statement Code Coverage

Read the following function code carefully and then: 1) Calculate the adequacy of the test cases given below in light of the Statement Code Coverage Criterion. 2) Which test case or combination of them could lead to a 100% Statement Code Coverage, if any? public static void function(int ( num) { int i,j,first, temp; for(i=num.length-1;i>0;i--){ first=0; for(j=1;j Output: num=[1,2,3]> Output: num=[1,2,3]> Output: num=(1,4,5]> } QUESTION 2: (5 POINTS] Find which test case combinations achieve 100% condition and branch coverage criterion. IF(X>0 && (Y t2:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
