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;1--){ first=0; for(j=1;i t2: 13: 14: ; QUESTION 2: (5 POINTS) Find which test case combinations achieve 100% condition and branch coverage criterion. IF(X>0 && (Y 12: t3: 14: 15: }

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!