In boundary value analysis testing method, if we want to design a test case…

2021

In boundary value analysis testing method, if we want to design a test case that computes the square root of integer values in the range from 1 to 4000, then the test case must include what values?

  1. A.

    {0, 1, 3999, 4000}

  2. B.

    {1, 2, 3999, 4000}

  3. C.

    {0, 1, 4000, 4001}

  4. D.

    {1, 2, 4000, 4001}

Attempted by 113 students.

Show answer & explanation

Correct answer: C

Boundary Value Analysis tests values at the edges of input domains. For a range from 1 to 4000, valid boundaries are 1 and 4000. Invalid boundaries immediately outside the range are 0 and 4001. Therefore, test cases should include values {0, 1, 4000, 4001} to cover both valid and invalid edge conditions effectively.

Explore the full course: Up Lt Grade Assistant Teacher 2025