CS FundamentalsHardIBM · Deloitte pattern

A password field must be 8–20 characters long. Using boundary value analysis on this single range, which set of test lengths is the standard (non-robust) boundary test set?

  1. A. 7 and 21 only
  2. B. 8, 14, 20 (min, midpoint, max)
  3. C. 7, 8, 9, 19, 20, 21 characters (just below min, min, just above min, just below max, max, just above max)
  4. D. 8 and 20 only

Correct answer: C. 7, 8, 9, 19, 20, 21 characters (just below min, min, just above min, just below max, max, just above max)

Boundary value analysis targets the edges and their immediate neighbours: one value just below the minimum (7, invalid), the minimum itself (8, valid), just above the minimum (9, valid), and symmetrically 19, 20, 21 at the upper boundary — 6 values for one range.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic