76.1k views
1 vote
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 unit's field is 0.1 units.

Which of the following is a set of input values that cover the boundary values with two-point boundary values for this field?
A. 0.3, 10.0, 28.0
B. 0.4, 0.5, 0.6, 24, 9, 25, 0, 25.1
C. 0.4, 0.5, 25.0 25.1
D. 0.5, 0.6, 24.9, 25.0

1 Answer

3 votes

Final answer:

The correct answer for a set of input values that cover boundary values with two-point boundary value testing for the e-commerce system's unit field is 0.4, 0.5, 25.0, and 25.1.

Step-by-step explanation:

The student is asking for a set of input values that would test the boundary values of an e-commerce system's unit field, with particular emphasis on two-point boundary value testing. In this scenario, the smallest valid amount that can be ordered is 0.5 units, and the largest valid amount is 25.0 units, with the field precision being 0.1 units. To adequately test the boundaries of this system, the input values should be just below and just above the valid range (i.e., 0.4, and 25.1 respectively), as well as at the precise limits (0.5, and 25.0).

The correct set of input values for boundary value testing that includes two-point boundary values would be 0.4, 0.5, 25.0, and 25.1. These values test the limits just below the lower limit, at the lower limit, at the upper limit, and just above the upper limit, ensuring the system correctly handles inputs at and around the boundaries of the valid range.

User Mamun Sardar
by
7.8k points