CS FundamentalsModerateTCS · Infosys

A function divides by (x - 7). Black-box tests from equivalence partitioning used x = 3, 50 and -10 and all passed. Which additional technique is most likely to expose the crash?

  1. A. Special-value (error-guessing) testing, which targets inputs such as 7, 0 and very large numbers that commonly cause failures
  2. B. Retesting the same three values
  3. C. Pairwise testing
  4. D. Load testing

Correct answer: A. Special-value (error-guessing) testing, which targets inputs such as 7, 0 and very large numbers that commonly cause failures

Equivalence partitioning assumes all values in a class behave alike; a single special point (x = 7) breaks that assumption. Error guessing and special-value testing target such singularities.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic