CS FundamentalsModerateProduct-company interview pattern

An age field accepts integers from 18 to 60 inclusive. Which set of test values corresponds to ROBUST boundary value analysis for this single input (boundaries, their neighbours inside and outside, and a nominal value)?

  1. A. 18, 19, 39, 59, 60
  2. B. 17, 18, 60, 61
  3. C. 0, 18, 39, 60, 100
  4. D. 17, 18, 19, 39, 59, 60, 61

Correct answer: D. 17, 18, 19, 39, 59, 60, 61

Standard BVA uses min, min+1, nominal, max−1, max (5 values). Robust BVA adds the invalid values just outside: min−1 and max+1, giving 7 values. The first option is plain BVA.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic