CS FundamentalsVery hardAccenture · Capgemini · Cognizant

Running a regression suite manually takes 40 hours per cycle. Automating it costs 300 hours up front; afterwards each cycle needs 2 hours to run and 5 hours of script maintenance. From which cycle onward is automation cheaper in total?

  1. A. From the 10th cycle
  2. B. From the 8th cycle
  3. C. From the 9th cycle
  4. D. From the 43rd cycle

Correct answer: A. From the 10th cycle

Each cycle saves 40 - (2 + 5) = 33 hours, so the 300-hour investment is recovered after 300/33 ≈ 9.1 cycles - i.e. during the 10th. Ignoring maintenance gives 300/38 ≈ 7.9, which suggests the 8th.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic