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 t2:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
