Boundary value analysis and equivalence partitioning
How the interviewer asks it
“A form field accepts an age between 18 and 65 inclusive, and a second field accepts a discount from 0 to 100 percent with up to two decimals. Use equivalence classes and boundary values to choose the smallest useful set of test inputs.”
Typed drills are free and unlimited: the AI scores your answer against the outline below.
What the interviewer is looking for
- Correct partitions: below range, in range, above range, and invalid types.
- Boundary values on both sides of each edge: 17, 18, 65, 66.
- Precision boundaries for decimals: 0.00, 0.01, 99.99, 100.00, 100.01 and three decimals.
- A small, justified set rather than every number.
How to structure your answer
- 01
Partitions for age
Invalid low (under 18), valid (18 to 65), invalid high (over 65), non-numeric, empty.
- 02
Boundaries for age
17, 18, 65 and 66, plus one typical value like 30.
- 03
Discount
-0.01, 0, 0.01, 99.99, 100, 100.01, and 10.555 to test the two-decimal rule.
- 04
Other inputs
Empty, spaces, letters, very long input, negative zero, localised decimal commas.
Best answers from candidates
No candidate answers yet. Type yours, and if it scores 6 or more you can show it here without your name.
Answers are shared by candidates, without names, after a privacy check. Add yours
Common mistakes
- Testing only the boundaries and never a typical value.
- Forgetting the invalid side of each boundary.
- Ignoring decimal precision and number format.
Follow-up questions to expect
- The field now also accepts the age as text, like "eighteen". What changes?
- How would you automate these as a data-driven test?
Now answer it out loud
Max will ask you this exact question, listen to your answer, push on the weak spots with follow-ups like the ones above, and score you when you finish.
Practice with MaxFree: a 5-minute voice round and unlimited typed drills, with scored feedback. No card, and your camera is never recorded.