Probability & Random Variables

Answer & solution
Answer: A (no official key was published)
Partition computers into faulty with probability p and nonfaulty with probability 1−p. The test declares a faulty computer faulty with conditional probability q, while it incorrectly declares a nonfaulty computer faulty with probability 1−q. Total probability gives pq+(1−p)(1−q), option A. The phrase correct result for any computer supplies the same conditional accuracy q in each class.
A probability tree has two paths ending in “declared faulty”: truly faulty then correctly identified, probability pq; or truly sound then incorrectly classified, probability (1−p)(1−q). These events are disjoint, so add them. Checks: if q=1 the result is p; if q=0 the result is 1−p; if q=1/2 it is 1/2 regardless of p.