Question: 1 . Consider the following procedure and answer these questions: a ) Suppose that if ( x < y ) line is mutated to if

1. Consider the following procedure and answer these questions:
a) Suppose that if ( x < y ) line is mutated to if ( x <= y ). Generate a test case that will
distinguish this mutant.
b) Suppose that if ( x < y ) line is mutated to if ( x < y +1). Generate a test case that
will distinguish this mutant.
c) Suppose that return x * y; line is mutated to return x / y;. Generate a test case that will
distinguish this mutant.

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!