Question: Software Testing: 6. Consider the findLast() method. Consider the AOR3 and the ROR4 mutation operators. # Find last index of element (a) What is the

Software Testing:

Software Testing: 6. Consider the findLast() method. Consider the AOR3 and the

6. Consider the findLast() method. Consider the AOR3 and the ROR4 mutation operators. # Find last index of element (a) What is the minimum number of mutants necessary for coverage comparable to the strongest graph coverage criteria? Justify. * Oparam x array to search * Oparam y value to look for * Oreturn last index of y in x; -1 if absent * Othrows NullPointerException if x is null public int findLast (int[] x, int y) { for (int i=x.length-1; i >= 0; i--) A1 for (int i=x.length-1; i > 0; i--) { if (x[i] == y) { return i; 3 } return -1; (b) List such minimum set of mutants. (c) Provide reachability conditions, infection conditions, propagation conditions, and test case values to kill Mutants 1. (d) Provide the test case values to kill that Mutant 1

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!