Question: Answer the following questions for the method twoPred() below: public String twoPred (int x, int y) { boolean z; if (x < y) z =

Answer the following questions for the method twoPred() below:

public String twoPred (int x, int y) { boolean z; if (x < y) z = true; else z = false; if (z && x+y == 10) return "A"; else return "B"; }

Identify test inputs for twoPred() that achieve Restricted Active Clause Coverage (RACC).

Identify test inputs for twoPred() that achieve Restricted Inactive Clause Coverage (RICC).

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!