GATE / CS ARCHIVE

GATE CSE 2011 / QUESTION 5

Equal development and maintenance costs

Engineering Mathematics & Other Topics · Software Engineering · Full GATE CSE 2011 paper

GATE 2011, Q5 1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Software Engineering

Question 5, GATE 2011: Software can be developed in L1 or L2. L2 needs twice as many lines of code as L1. For either language development effort is LOC/10000 man-years. Development cost per man-year is Rs 1000000 for L1 and Rs 750000 for L2. Maintenance lasts five years, at Rs 100000 per year for L1 and Rs 50000 per year for L2. For what L1 LOC do total development plus maintenance costs agree?

(A) 4000
(B) 5000
(C) 4333
(D) 4667
Tap to enlarge
Your answer
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.

Original paper, page 2 · Answer key