IQ.IV · ISTQB CTFL practice question
A ride-share app charges surge pricing based on integer rain intensity on a scale of 0 to 10 inclusive: 0 = No rain (1.0x), 1–4 = Light rain (1.2x), 5–10 = Heavy rain (1.5x). Values <0 or >10 are invalid. How many distinct equivalence partitions exist across valid and invalid inputs?
Check answer and explanation
Correct answer: 5 partitions (-inf..-1, 0, 1..4, 5..10, 11..+inf)
Explanation
There are 3 valid partitions (0, 1–4, 5–10) and 2 invalid partitions (<0 and >10), giving 5 equivalence partitions in total.
Common trap
There are 3 valid partitions (0, 1–4, 5–10) and 2 invalid partitions (<0 and >10), giving 5 equivalence partitions in total.
Source: Original unofficial practice; not an official ISTQB exam item
Checked against the cited text on 2026-11-30.