Programing

Consider the method foo() shown below:

int foo(int a, int b, int c, int d)

{

if (a==0)
return 0;

int x = 0;

if ((a==b) OR (c==d))
x = 1;

e = 1/x;

return e;

}

Please answer the following questions:

Identify a minimum set of test cases that satisfy the statement coverage criterion.
Identify a minimum set of test cases that satisfy the branch coverage criterion.
Do the test cases identified in (2) expose a defect that was not identified by the test cases in (1)? Please explain.
Q2:

What are the equivalence classes for an application that requires two integer inputs 3 space less or equal than space x space less or equal than space 7 space

a n d space 5 space less or equal than space y space less or equal than space 9

IS IT YOUR FIRST TIME HERE? WELCOME

USE COUPON "11OFF" AND GET 11% OFF YOUR ORDERS