65.8k views
5 votes
A company's employees are paid bonuses if they work more than a year in the company and achieve a target which is individually agreed before.

These facts can be shown in a decision table:
Test-ID | T1 | T2 | T3 | T4
Condition1 Employment for more than 1 year? | YES | NO | NO | YES
Condition2 Agreed target? | NO | NO | YES | YES
Condition3 Achieved target? | NO | NO | YES | YES
Action Bonus payment | NO | NO | NO | YES
Which of the following test cases represents a situation that can happen in real life, and is missingin the above decision table?
A. Condition1 = YES, Condition2 = NO, Condition3 = YES, Action= NO
B. Condition1 = YES, Condition2 = YES, Condition3 = NO, Action= YES
C. Condition1 = NO, Condition2 = NO, Condition3 = YES, Action= NO
D. Condition1 = NO, Condition2 = YES, Condition3 = NO, Action= NO

User HDs Sergiu
by
7.9k points

1 Answer

6 votes

Final answer:

The missing realistic test case in the decision table, based on the company policy for bonus payment, is the one where an employee has been with the company for more than a year and has an agreed target but fails to meet it, resulting in no bonus.

Step-by-step explanation:

The situation in question deals with a company's bonus payment policy, outlined in a decision table, which establishes whether employees are eligible for a bonus based on certain conditions. According to the provided decision table, employees receive a bonus only if they have been employed for more than a year and have met individually agreed-upon targets. When looking at the test cases listed, Test-ID T1 to T4, the missing realistic test case in the decision table is represented by Option B: Condition1 = YES, Condition2 = YES, Condition3 = NO, Action= NO. This test case shows a scenario where an employee has been working for more than a year and has an agreed target but did not achieve it. According to the company policy, the employee in such a case would not receive a bonus.

User Jakub A Suplicki
by
9.2k points