CTFL-2018 Exam QuestionsBrowse all questions from this exam

CTFL-2018 Exam - Question 38


A supermarket rewards its customers with discounts on certain products depending on how much the customer spends over a twelve-month period. The discounts are:

• 5% discount – once £500 has been spent.

• 10% discount – once a further £500 has been spent.

• 15% discount – once a further £1000 has been spent.

• 20% discount – once a further £2000 has been spent.

The following test cases have been written:

TC1 – £500 spent -

TC2 – £2000 spent -

How many more test cases must be written to achieve 100% 2-point boundary value analysis for the discount scheme?

Show Answer
Correct Answer: B,C

To achieve 100% 2-point boundary value analysis, we need to test just below and just above each boundary point where the discount rate changes: £499, £500, £501, £1000, £1001, £2000, £2001, £4000, and £4001. This gives us a total of 9 test cases, but since TC1 (£500) and TC2 (£2000) are already provided, we need 7 more test cases.

Discussion

3 comments
Sign in to comment
onthiistqbOption: B
Jun 25, 2023

499, 1000. 1001, 2000, 2001, 4001

swathi_adaOption: C
Nov 13, 2023

501,1000,1001,2001,4000,4001 (500 and 2000 is included)

LynxyOption: A
Jan 11, 2024

, the partitions are determined by the ranges of total spend that correspond to each discount tier. Here’s how they break down: 5% Discount Tier: This is for customers who have spent between £0 and £500. So, the first partition is [0, 500]. 10% Discount Tier: This is for customers who have spent between £501 and £1000 (which is an additional £500 after reaching the 5% Discount Tier). So, the second partition is [501, 1000]. 15% Discount Tier: This is for customers who have spent between £1001 and £2000 (which is an additional £1000 after reaching the 10% Discount Tier). So, the third partition is [1001, 2000]. 20% Discount Tier: This is for customers who have spent £4001 and above (which is an additional £2000 after reaching the 15% Discount Tier). So, the fourth partition is [4001, ∞).