Multiple choice technology testing

An input field takes the year of birth between 1900 and 2004. The boundary values for testing this field are

  1. 0,1900,2004,2005

  2. 1900, 2004

  3. 1899,1900,2004,2005

  4. 1899, 1900, 1901,2003,2004,2005

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Boundary value analysis tests values at boundaries plus one just below and above. For valid range 1900-2004, test 1899 (just below lower bound), 1900 (at lower bound), 2004 (at upper bound), and 2005 (just above upper bound). Option B only tests the boundary values themselves without the edge cases.

AI explanation

To answer this question, we need to consider the boundary values for the given input field, which takes the year of birth between 1900 and 2004.

Option A) 0, 1900, 2004, 2005 - This option includes the value 0, which is outside the specified range of 1900 to 2004. Therefore, it is incorrect.

Option B) 1900, 2004 - This option includes the minimum and maximum values specified in the range. Therefore, it is a valid option.

Option C) 1899, 1900, 2004, 2005 - This option includes the year before the minimum value (1899) and the year after the maximum value (2005). These values are outside the specified range. Therefore, it is incorrect.

Option D) 1899, 1900, 1901, 2003, 2004, 2005 - This option includes the year before the minimum value (1899), the year after the maximum value (2005), and additional values that are not necessary to test the boundary. Therefore, it is incorrect.

The correct answer is option C) 1899, 1900, 2004, 2005. This option includes the values that are right before and right after the specified range boundaries, which are 1899 and 2005 respectively.