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

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: t3: t4: t5: }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!