79.0k views
2 votes
You are testing an e-commerce system that sells cooking supplies such as spices, flour, and other items in bulk. The units in which the items are sold are either grams (for spices and other expensive items) or kilograms (for flour and other inexpensive items). Regardless of the units, the smallest valid order amount is 0.5 units (e.g., half a gram of cardamom pods) and the largest valid order amount is 25.0 units (e.g., 25 kilograms of sugar). The precision of the units' field is 0.1 units.

Which of the following is a MINIMAL set of input values that cover the equivalence partitions for this field?
A. 10.0, 28.0
B. 0.4, 0.5, 25.0, 25.1
C. 0.2, 0.9, 29.5
D. 12.3

1 Answer

4 votes

Final answer:

The minimal set of input values that cover the equivalence partitions for the units' field are 0.4, 0.5, 25.0, and 25.1.

Step-by-step explanation:

The minimal set of input values that cover the equivalence partitions for this field are:

  1. 0.4
  2. 0.5
  3. 25.0
  4. 25.1

These values cover the different equivalence partitions for the units' field. They include the smallest valid order amount (0.5 units) and the largest valid order amount (25.0 units), as well as values that are just below and above these limits. The precision of the units' field is 0.1 units, so the values in the set have increments of 0.1.

User Mysterywood
by
6.8k points