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, 1901,2003,2004,2005

  4. 1899,1900,2004,2005

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

For a boundary range of 1900 to 2004, the traditional two-value boundary testing covers values just inside and outside the limits: 1899 (invalid low), 1900 (valid low), 2004 (valid high), and 2005 (invalid high). This makes option 628624 the correct choice.

AI explanation

To answer this question, we need to consider the boundary values for testing the input field. The given condition states that the year of birth should be between 1900 and 2004.

Let's go through each option to understand why it is correct or incorrect:

Option A) 0,1900,2004,2005 - This option includes the values 0 and 2005, which are outside the specified range of 1900 to 2004. Therefore, this option is incorrect.

Option B) 1900, 2004 - This option includes the boundary values of 1900 and 2004. These values fall within the specified range. Therefore, this option is correct.

Option C) 1899, 1900, 1901, 2003, 2004, 2005 - This option includes the values 1899 and 2005, which are outside the specified range of 1900 to 2004. Therefore, this option is incorrect.

Option D) 1899,1900,2004,2005 - This option includes the boundary values of 1900 and 2004, which fall within the specified range. It also includes the values 1899 and 2005, which are outside the specified range. Therefore, this option is incorrect.

The correct answer is Option D.