IQ.IV · ISTQB CTFL practice question
A hotel booking engine accepts room-night stays for integer nights from 1 to 14 inclusive. Stays of 0 or less or 15 or more are rejected. Which set of test inputs achieves 100% 2-value Boundary Value Analysis coverage across all valid and invalid partitions?
Check answer and explanation
Correct answer: 0, 1, 14, 15
Explanation
There are two boundaries for the valid range 1..14: the lower boundary (between <=0 and 1..14) gives 0 and 1, and the upper boundary (between 1..14 and >=15) gives 14 and 15.
Common trap
There are two boundaries for the valid range 1..14: the lower boundary (between <=0 and 1..14) gives 0 and 1, and the upper boundary (between 1..14 and >=15) gives 14 and 15.
Source: Original unofficial practice; not an official ISTQB exam item
Checked against the cited text on 2026-11-30.