ISTQB 연습문제 풀이 - Exam B : Q#20


 

1. Introduction

This question tests your ability to apply Equivalence Partitioning (EP) to a real discount rule scenario and choose the input set that gives the highest partition coverage.

Note (EN/KR):
Your goal is to cover as many valid equivalence partitions as possible using the given input sets.
주어진 입력 세트로 가능한 많은 유효 동등 파티션을 커버하는 것이 목표입니다.

2. Problem Summary

Customers get discounts depending on the number of the current wash:

  • Every 10th wash → 10% discount
    10번째마다 10% 할인
  • Every 20th wash → additional 40% (total 50%)
    20번째마다 추가 40% 할인 → 총 50% 할인

So, discount depends only on whether the wash number is a multiple of 10 and/or 20.

3. Equivalence Partitions

✔ Valid EP Partitions

Partition Wash Numbers Discount
P1 Not a multiple of 10 No discount
할인 없음
P2 Multiple of 10 but not 20 10% discount
10% 할인
P3 Multiple of 20 50% discount
50% 할인

즉, 유효 파티션은 총 3개입니다: (1) 10의 배수 아님, (2) 10의 배수지만 20의 배수는 아님, (3) 20의 배수.

4. Practice Question

❓ Question

Which input set achieves the highest equivalence partition coverage?

  • a) 19, 20, 30
  • b) 11, 12, 20
  • c) 1, 10, 50
  • d) 10, 29, 30, 31

✅ Correct Answer: a)

📘 Explanation (EN/KR)

  • a) Correct.
    – 19 → P1 (no discount)
    – 20 → P3 (50% discount)
    – 30 → P2 (10% discount)
    This set covers all three valid partitions.
    19는 할인 없음(P1), 20은 50% 할인(P3), 30은 10% 할인(P2)을 커버하여 유효 파티션 3개를 모두 포함합니다.
  • b) Not correct. 11 and 12 are both P1, and 20 is P3 → only 2 partitions covered.
    11·12가 모두 P1이라 중복이며 P3만 추가되어 총 2개 파티션만 커버합니다.
  • c) Not correct. 1 is P1, 10 and 50 are P2 → P3 not covered.
    20의 배수(P3)가 없어서 총 2개 파티션만 커버합니다.
  • d) Not correct. 10 and 30 are P2, 29 and 31 are P1 → P3 not covered.
    P1과 P2는 커버하지만 50% 할인(P3)이 빠져 있습니다.

✔ Therefore, option (a) achieves the highest EP coverage.
✔ 따라서 (a)가 가장 높은 동등 분할 커버리지를 달성합니다.

📊 Coverage Summary Table

Option P1 (No discount) P2 (10%) P3 (50%) Total Partitions Covered
a) 19, 20, 30 ✔ (19) ✔ (30) ✔ (20) 3
b) 11, 12, 20 ✔ (11,12) ✔ (20) 2
c) 1, 10, 50 ✔ (1) ✔ (10,50) 2
d) 10, 29, 30, 31 ✔ (29,31) ✔ (10,30) 2

5. Summary & Call to Action

To maximize EP coverage, always identify partitions first, then pick input values that hit each partition at least once with minimal overlap.

EP 문제는 먼저 파티션을 정확히 나눈 뒤, 각 파티션을 한 번씩만 커버하도록 대표값을 고르는 것이 핵심입니다. FL-4.2.1


Related: More ISTQB Posts

다음 이전