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


Correct Option: D

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.

Find more quizzes: