CS FundamentalsVery hardProduct-company placement

In domain testing for integer inputs, a program accepts points satisfying x + y ≤ 10 (a closed boundary). Which pair of test points is the correct ON point and OFF point for this boundary?

  1. A. ON: (5, 5); OFF: (6, 5)
  2. B. ON: (5, 4); OFF: (5, 5)
  3. C. ON: (0, 0); OFF: (10, 10)
  4. D. ON: (5, 5); OFF: (5, 4)

Correct answer: A. ON: (5, 5); OFF: (6, 5)

The ON point lies on the boundary (5 + 5 = 10). For a closed boundary the OFF point lies just outside it, here x + y = 11, e.g. (6, 5). For an open boundary (x + y < 10) the OFF point would lie just inside.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic