A requirement specifies that if the total amount of sales (TAS) made during the year by a corporate seller is 300,000€ or more, the bonus that must be paid to the seller is 100% of a certain amount agreed upon at the beginning of the year. The software contains a fault as it implements this requirement with the decision "IF (TAS = 300,000)" instead of "IF (TAS >= 300,000)". The application of the 3-value boundary value analysis to this problem consists of the following three test cases (TAS is an integer variable): TC1 = 299,999 - TC2=300,000 - TC=300,001 - Which of the following statements is TRUE?
Select an option, then click Submit answer.
Reference / correct answer:
TC3 would highlight the fault.
Most accepted answer: C. TC3 would highlight the fault.
Community votes: B=1, C=3
Selected Answer: C TC3 = 300,001 → Bonus expected. The faulty code would not pay the bonus (since TAS ≠ 300,000). upvoted 4 times
Selected Answer: C Teniendo en cuenta que la decisión codificada es "IF (TAS = 300,000)" y que el requerimiento indica que, si TAS en igual o mayor a 300,000 el vendedor recibe bonificación, entonces: TC1 = 299,999 no es igual a 300,000, por lo que no recibe bonificación, Correcto. TC2 = 300,000 es igual a 300,000 por que recibe bonificación, Correcto. TC3 = 300,001 no es igual a 300,000 por lo que no recibe bonificación, Incorrecto, el requerimiento indica que si es mayor a 300,000 recibe bonificación. Por lo tanto, TC3 destacaría la falla. Respuesta correcta C. upvoted 3 times
Selected Answer: C Answer C is correct. upvoted 2 times
Selected Answer: B I believe B is the correct answer. While C would highlight the fault, so would TC2 as it should also receive the bonus. upvoted 1 times