Software Engineering

Answer & solution
Official answer: B
Let L1 require x lines and L2 require 2x. Their development costs are 100x and 150x rupees, respectively. Five-year maintenance costs are 500000 and 250000. Equating100x+500000=150x+250000 gives x=5000, B.
The LOC-to-effort conversion must be done separately for each language: x/10000 man-years for L1 versus 2x/10000 for L2. Multiplying by their respective annual development rates produces 100x and 150x. L2 is dearer to develop by 50x but cheaper to maintain by Rs 250000 over five years. Equality therefore occurs when that extra development cost exactly cancels the maintenance saving. At x=5000 both totals are Rs 1000000.