CS FundamentalsModerateTCS · Accenture · ISTQB-style

A price field accepts amounts from ₹0.01 to ₹999.99, with exactly two decimal places. Which pair of values are the invalid boundary values for boundary value analysis?

  1. A. ₹0.00 and ₹1,000.00
  2. B. ₹0 and ₹1,000
  3. C. ₹-0.01 and ₹999.98
  4. D. ₹0.02 and ₹999.98

Correct answer: A. ₹0.00 and ₹1,000.00

The step of the input is ₹0.01, so the values just outside the boundaries are 0.01 - 0.01 = 0.00 and 999.99 + 0.01 = 1,000.00. 0.02 and 999.98 are valid inside-boundary values; whole-rupee neighbours ignore the field's precision.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic