An enhancement makes 40% of a program’s execution time run twice as fast. What is the overall speedup?
Correct answer B. 1.25
New time = 0.6 + 0.4 / 2 = 0.8 of the original, so speedup = 1 / 0.8 = 1.25. The answer 2.0 assumes the whole program is improved, and 1.4 simply adds 40% to 1. Amdahl's law applies to any enhancement, not just parallelism: the gain is limited by the fraction of time that actually uses the improved part.
Answer checked How we write and check questions
Discussion