‘X’ has given a data on a person age, which should be between 1 to 99. Using BVA which is the appropriate one

  1. 0,1,2,99

  2. 1, 99, 100, 98

  3. 0, 1, 99, 100

  4. –1, 0, 1, 99


Correct Option: C

AI Explanation

To answer this question, we need to understand the concept of Boundary Value Analysis (BVA). BVA is a testing technique that focuses on the boundaries or extreme values of input data. The idea is to test the system's behavior at the edges of the input domain.

In this case, the valid age range is between 1 and 99. So, we need to select values that represent the lower and upper boundaries, as well as values just outside of these boundaries.

Let's go through each option to determine which one is appropriate:

Option A) 0, 1, 2, 99 - This option includes 0 as a value, which is outside the valid range of 1 to 99. Therefore, this option is incorrect.

Option B) 1, 99, 100, 98 - This option includes 100 as a value, which is outside the valid range of 1 to 99. Therefore, this option is incorrect.

Option C) 0, 1, 99, 100 - This option includes values 0 and 100, which are just outside the valid range of 1 to 99. Additionally, it includes values 1 and 99, which represent the lower and upper boundaries of the valid range. Therefore, this option is correct.

Option D) –1, 0, 1, 99 - This option includes -1 as a value, which is outside the valid range of 1 to 99. Therefore, this option is incorrect.

The correct answer is Option C) 0, 1, 99, 100. This option includes values just outside the valid range, as well as values representing the lower and upper boundaries of the valid range. Hence, it is the appropriate option for Boundary Value Analysis in this case.

Find more quizzes: