CS FundamentalsHardAccenture · ISTQB-style

A web form's 'Date of birth' accepts dates from 1 Jan 1950 to 31 Dec 2005 inclusive. Using two-value boundary value analysis, which dates should be tested?

  1. A. 1 Jan 1950, 31 Dec 2005
  2. B. 1 Jan 1950, 2 Jan 1950, 30 Dec 2005, 31 Dec 2005
  3. C. 31 Dec 1949, 1 Jan 1950, 31 Dec 2005, 1 Jan 2006
  4. D. 1 Jan 1949, 1 Jan 1950, 31 Dec 2005, 31 Dec 2006

Correct answer: C. 31 Dec 1949, 1 Jan 1950, 31 Dec 2005, 1 Jan 2006

Two-value BVA tests each boundary and its nearest neighbour outside it, using the field's step (one day): 31 Dec 1949 | 1 Jan 1950 and 31 Dec 2005 | 1 Jan 2006. Year-sized steps skip the true neighbours.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic