193k views
3 votes
Assume postal rates for 'light letters' are: $0.25 up to 10 grams; $0.35 up to 50 grams; $0.45 up to 75 grams; $0.55 up to 100 grams. Which test inputs (in grams) would be selected using boundary value analysis?

A. 0, 9,19, 49, 50, 74, 75, 99,100
B. 10, 50, 75,100, 250, 1000
C. 0, 1,10,11, 50, 51, 75, 76,100,101
D. 25, 26, 35, 36, 45, 46, 55, 56

User GThamizh
by
8.6k points

2 Answers

4 votes

Based on the given postal rates for 'light letters', we can use boundary value analysis to determine the test inputs.

Boundary value analysis focuses on the boundaries or limits of a range. In this case, we want to test the boundaries of each weight range for the postal rates.

Looking at the options provided, the test inputs that cover the boundaries of each weight range are:

A. 0, 9, 19, 49, 50, 74, 75, 99, 100

These inputs cover the lower and upper limits of each weight range specified in the postal rates.

Therefore, option A would be the correct choice for boundary value analysis.

User BLB
by
8.7k points
3 votes

Final answer:

Boundary value analysis is a software testing technique that focuses on selecting test inputs that represent the boundaries of a function's domain. In this case, we apply it to the given postal rates for 'light letters' based on their weight in grams. By considering the ranges and their appropriate boundaries, we can select the test inputs required.

Step-by-step explanation:

Boundary value analysis is a software testing technique that focuses on selecting test inputs that represent the boundaries of a function's domain. In this case, the function is the postal rates for 'light letters' based on their weight in grams. To apply boundary value analysis, we need to consider the minimum and maximum values for each range.

Looking at the given postal rates, we can identify the following ranges and their respective boundaries:

  1. 0-10 grams: boundaries are 0 and 10
  2. 10-50 grams: boundaries are 10 and 50
  3. 50-75 grams: boundaries are 50 and 75
  4. 75-100 grams: boundaries are 75 and 100

Using boundary value analysis, we select the test inputs that cover all these boundaries. Based on the options provided, the correct choice would be option A: 0, 9, 19, 49, 50, 74, 75, 99, 100.

User LNiederha
by
8.5k points