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


Correct Option: C

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.

Find more quizzes: