CS FundamentalsHardService-company placement · ISTQB-style

A decision table has three yes/no conditions and four rules: R1: C1 = N (C2, C3 don't care) → A; R2: C1 = Y, C2 = N (C3 don't care) → B; R3: C1 = Y, C2 = Y, C3 = Y → C; R4: C1 = Y, C2 = Y, C3 = N → D. What is the minimum number of tests that exercises every rule, and how many of the 8 condition combinations does the table cover?

  1. A. 8 tests; all 8 combinations
  2. B. 4 tests; only 4 combinations
  3. C. 3 tests; 6 combinations
  4. D. 4 tests; all 8 combinations

Correct answer: D. 4 tests; all 8 combinations

One test per rule needs 4 tests. Each don't-care doubles the combinations a rule stands for: R1 covers 4, R2 covers 2, R3 and R4 one each, so 4 + 2 + 1 + 1 = 8: the table is complete. Expanding every don't-care would mean 8 tests, which adds no new rule.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic