ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 230 - CTFL4 discussion

Report
Export

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?

A.
TC1 would highlight the fault
Answers
A.
TC1 would highlight the fault
B.
TC2 would highlight the fault
Answers
B.
TC2 would highlight the fault
C.
TC3 would highlight the fault
Answers
C.
TC3 would highlight the fault
D.
None of the three test cases would highlight the fault.
Answers
D.
None of the three test cases would highlight the fault.
Suggested answer: B

Explanation:

The requirement specifies that a bonus should be paid if the total amount of sales (TAS) made during the year is 300,000 or more. The software incorrectly implements this requirement with 'IF (TAS = 300,000)' instead of 'IF (TAS >= 300,000)'. Using boundary value analysis (BVA), which is a common technique in software testing, the three test cases provided (TC1 = 299,999, TC2 = 300,000, and TC3 = 300,001) cover the critical boundary values around the condition.

TC1 tests just below the boundary (299,999),

TC2 tests exactly at the boundary (300,000),

TC3 tests just above the boundary (300,001).

Since the software incorrectly checks for TAS equal to 300,000, only TC2 will fail because the condition is exactly met and highlights the incorrect implementation of the decision logic.

asked 18/09/2024
Faqeer Ali
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first