nerdexam
iSQI

CTFL_SYLL_4.0 · Question #8

A company wants to reward each of its salespeople with an annual bonus that represents the sum of all the bonuses accumulated for every single sale made by that salesperson. The bonus for a single…

The correct answer is B. 6. The minimum number of test cases needed to cover the full decision table associated with this scenario is 6. This is because the decision table has 4 conditions (type of customer and amount of sale) and 4 actions (bonus percentage). The conditions have 2 possible values each…

Test Analysis and Design

Question

A company wants to reward each of its salespeople with an annual bonus that represents the sum of all the bonuses accumulated for every single sale made by that salesperson. The bonus for a single sale can take on the following four values: 3%, 5%, 7% and 10% (the percentage refers to the amount of the single sale). These values are determined on the basis of the type of customer (classified as "Basic" or "Premium") to which such sale was made, and on the amount of such sale classified into the following three groups G1, G2 and G3:

  • [G1]: less than 300 euros
  • [G2]: between 300 and 2000 euros
  • [G3]: greater than 2000 euros

Which of the following is the minimum number of test cases needed to cover the full decision table associated with this scenario?

Options

  • A12
  • B6
  • C4
  • D3

How the community answered

(40 responses)
  • A
    10% (4)
  • B
    57% (23)
  • C
    25% (10)
  • D
    8% (3)

Explanation

The minimum number of test cases needed to cover the full decision table associated with this scenario is 6. This is because the decision table has 4 conditions (type of customer and amount of sale) and 4 actions (bonus percentage). The conditions have 2 possible values each (Basic or Premium, and G1, G2 or G3), so the total number of combinations is 2 x 2 x 2 x 2 = 16.

Topics

#decision table testing#test case minimization#condition combinations#test design

Community Discussion

No community discussion yet for this question.

Full CTFL_SYLL_4.0 Practice