Exam CTFL-2018 All QuestionsBrowse all questions from this exam
Question 37

An airline’s frequent flyer’s club awards benefits depending on which tier a customer is in. The software must determine which tier to allocate a customer to based on an input value of total Credits Earned to date.

Customers initially join the Silver Tier and remain in that tier for the first 400 Credits Earned. The next 400 Credits Earned moves the customer into the Gold Tier. The next 600 Credits Earned moves the customer into the Platinum Tier. Further Credits Earned moves the customer into the Concierge Tier.

Test Cases have been written with the following total Credits Earned input values:

TC1 – 400 Credits -

TC2 – 500 Credits -

TC3 – 800 Credits -

TC4 – 1500 Credits -

Applying the Equivalence Partitioning test design technique, what percentage of valid Equivalence Partitions have these 4 test cases collectively achieved?

    Correct Answer: D

    There are four valid equivalence partitions for the tiers based on Credits Earned: Silver Tier (0 to 400 Credits), Gold Tier (401 to 800 Credits), Platinum Tier (801 to 1400 Credits), and Concierge Tier (1401 and above Credits). The provided test cases are: TC1 covers 400 Credits (Silver Tier), TC2 covers 500 Credits (Gold Tier), TC3 covers 800 Credits (Gold Tier), and TC4 covers 1500 Credits (Concierge Tier). This means all four partitions are covered: Silver by TC1, Gold by TC2 and TC3, Platinum by TC4. Thus, the percentage of valid equivalence partitions achieved is 100%.

Discussion
rolandpOption: C

Silver Tier: 0 to 400 Credits Earned (TC1 - 400) Gold Tier: 401 to 800 Credits Earned (TC2 - 500, TC3 - 800) Platinum Tier: 801 to 1400 Credits Earned Concierge Tier: 1401 and above Credits Earned (TC4 - 1500) only three partitions are covered by the test cases. So answer D is not correct. With TC3 or TC4 you cannot test the Platinum Tier. 3 / 4 -> 0,75 -> 75%

BRANNASOption: D

It should be 100% In the given scenario, there are four valid equivalence partitions: Silver Tier: 0 to 400 Credits Earned Gold Tier: 401 to 800 Credits Earned Platinum Tier: 801 to 1400 Credits Earned Concierge Tier: 1401 and above Credits Earned As we can see, all four partitions are covered by the test cases. Therefore, the number of unique partitions covered is 4. To calculate the percentage, you divide the number of unique partitions covered by the total number of valid partitions and then multiply by 100: Percentage = (Number of Unique Partitions Covered / Total Number of Valid Partitions) * 100 = (4 / 4) * 100 = 100% So, in this specific case, the four test cases cover all the valid equivalence partitions, resulting in 100% coverage. This means that 100% of the valid equivalence partitions have been achieved by these four test cases.