ITPEC FE Subject A April 2024 Question 37
ITPEC FE Subject A April 2024 — Question 37 of 60
Boundary Value Analysis — select test values at the edges of a valid range.
Given condition 25 ≤ x < 50 (integer):
- •Valid range:
25to49(sincexis integer andx < 50, max valid =49) - •Left boundary =
25→ test24(invalid) and25(valid) - •Right boundary =
49→ test49(valid) and50(invalid)
Test set: 24, 25, 49, 50
Why not others:
- (b) 24, 25, 50, 51 — treats 50 as the boundary, but 50 is already invalid; the real upper boundary is 49
- (c) 25, 26, 49, 50 — 26 is not a boundary-adjacent value
- (d) 25, 26, 50, 51 — 26 is interior; 51 is two steps from the valid range
Key rule: For integers with x < N, the upper boundary of the valid range is N - 1. Apply BVA to the actual valid range boundaries, not to the condition's literal values.
AI-generated — may contain errors
The original exam layout is preserved in the image so diagrams, formulas, tables, and code remain accurate.
This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official FE past-paper collection or Report an issue.