Question:

For a function of two variables, boundary value analysis yields:

Show Hint

In Boundary Value Analysis (BVA), the number of test cases is determined by: \[ \text{Total cases} = 4n + 3 \] where \( n \) is the number of input variables.
Updated On: Feb 6, 2025
  • \( 4n + 3 \) test cases
  • \( 4n + 1 \) test cases
  • \( n + 4 \) test cases
  • \( n + 1 \) test cases
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation


Step 1:
Understanding Boundary Value Analysis (BVA)
Boundary Value Analysis is a black-box testing technique used to identify defects at the boundaries of input ranges. For a function with two variables, each variable has a minimum, maximum, and nominal value.
- If a function has \( n \) variables, the number of test cases required is generally computed as: \[ \text{Total test cases} = 4n + 3 \] This accounts for:
1. Each variable tested at its min, max, min+1, and max-1 values.
2. Additional test cases for overall system consistency.
Step 2:
Explanation of Options
- Option (A) \( 4n + 3 \) is correct as per the boundary value analysis formula.
- Option (B) \( 4n + 1 \) is incorrect as it does not fully account for all boundary values.
- Option (C) \( n + 4 \) is incorrect as it underestimates the necessary test cases.
- Option (D) \( n + 1 \) is incorrect and does not consider variations at boundaries.
Was this answer helpful?
0
0