CSCP Exam QuestionsBrowse all questions from this exam

CSCP Exam - Question 675


Tax system -

A tax system needs to be updated due to new legislation. For a person with a salary of less than 20.000 and who is married, the tax needs to be re-calculated. If the person also has more than two and less than five children, an additional 10% reduction is applicable.

How many input classes can be distinguished when applying equivalence partitioning to the "Tax System" specification?

Show Answer
Correct Answer: C

To determine the number of input classes using equivalence partitioning, we need to consider different conditions and break them into distinct groups. Here are the partitions for the given conditions: (1) Salary less than 20,000, (2) Salary 20,000 or more, (3) Married, (4) Not married, (5) Children less than 2, (6) Children between 2 and 4 (inclusive), (7) Children 5 or more. Combining these, we get the following combinations of conditions relevant to the specification: 1. Salary < 20,000, Married, Children < 2; 2. Salary < 20,000, Married, Children 2-4; 3. Salary < 20,000, Married, Children >= 5; 4. Salary < 20,000, Not Married; 5. Salary >= 20,000. Since the question relates to people with a salary of less than 20,000 and who are married specifically, disjoint conditions include children in various ranges (<2, 2-4, >=5). Considering this leads to a total of 7 distinct input classes.

Discussion

1 comment
Sign in to comment
Vyvyan
Dec 4, 2024

why not 7? 20000 (yes + no) married (yes + no) child (<2, 2-4, >=5)