Consider the following pseudo code:
1. Begin
2. Input X, Y
3. If X > Y
4. __Print (X, ‘is greater than’, Y)
5. Else
6. __Print (Y, is greater than or equal to’, X)
7. EndIf
8. End
What is the minimum number of test cases required to guarantee both 100% statement coverage and 100% decision coverage?
Which of the following, select the best description of the fundamental test process:
Which of the test cases below will exercise both outcomes from decision 2? [K3]
Refer to the exhibit
In a system designed to work out the employee tax to be paid:
_ An employee has $4,000 of salary tax free.
_ The next $1,500 is taxed at 10%.
_ The next $28,000 after that is taxed at 22%.
_ Any further amount is taxed at 40%.
Which of these is a valid Boundary Value Analysis test case?
A system calculates the amount of customs duty to be paid:
_ No duty is paid on goods value up to, and including, $2,000.
_ The next $8,000 is taxed at 10%.
_ The next $20,000 after that is taxed at 12%.
_ Any further amount after that is taxed at 17%.
To the nearest $, which of these groups of numbers fall into three DIFFERENT equivalence classes?
What factors should be considered to determine whether enough testing has been performed?
(i)The exit criteria.
(ii)The budget.
(iii)How big the test team is.
(iv)The product's risk profile.
(v)How good the testing tools are.
(vi)Sufficient details of the system status to allow decisions
How does software testing contribute to the quality of delivered software? [K2]