?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Difficult

Testing Good Quality

APCSA-GPEHKK

Given the following method:

/** 
 * return true if the width is within the tolerance of the mean,
 * return false otherwise.
 */
public static boolean goodQuality(double width, double mean, double tolerance)
{
    // implementation not shown
}

Which of the following test cases would be best to EXCLUDE if you could only select four of them for testing?

A

When width is less than (mean minus tolerance).

B

When width is greater than (mean plus tolerance).

C

When width is equal to mean.

D

When width is equal to (mean minus tolerance).

E

When the tolerance is equal to the absolute value of (mean minus width).