i am not a programmer!! but the course i do involves abit of programming (java). any help on below questions (highlighted in red) will be appearcaited...
For Q1 - is the answer "Y" is the biggest???
For Q2 - apart from missing the "else statment" i can't spot any other faults - Please help!!!
For Q3 - Is MCDC (Multiple condition and decision coverage) most adequate?? it requires to illurstate the anware with some coding explanation
Many many thanks in advance
Q1 - Consider the following code (in Java) which accepts 3 integers x, y and z as input and output whether x, y, or z is the biggest.
System.out.println("x is the greatest");
System.out.println("z is the greatest");
System.out.println("y is the greatest");
Q2- What is the fault?
Q3 - Which white box coverage criterion will you adopt to reveal this type of fault? You should define the criterion and explain your choice. (note: you should choose a coverage criterion which can always generate a test set to detect the fault but requires the fewest number of test cases)