Question

A company needs to develop a strategy for software product development for which it has a choice of two programming languages L1 and L2. The number of lines of code (LOC) developed using L2 is estimated to be twice the LOC developed with L1. The product will have to be maintained for five years. Various parameters for the company are given in the table below.

ParameterLanguage L1Language L2
Man years needed for developmentLOC / 10000LOC / 10000
Development Cost per man yearRs 10,00,000Rs 7,50,000
Maintenance time5 years5 years
Cost of maintenance per yearRs 1,00,000Rs 50,000

Total cost of the project includes cost of development and maintenance. What is the LOC for L1 for which the cost of the project using L1 is equal to the cost of the project using L2?

Choose one option
Official answer and solution
Official answer
B
From
Official GATE 2011 answer key

Solution

Formulate total project cost equations for both languages as functions of LOC and solve for the break-even point.

  1. Let the lines of code developed using language L1 be LL. Then the lines of code developed using L2 is 2L2L.
  1. For language L1:
  • Development effort = L10000\frac{L}{10000} man-years.
  • Development cost = L10000×10,00,000=100L\frac{L}{10000} \times 10,00,000 = 100 L.
  • Maintenance cost over 5 years = 5×1,00,000=5,00,0005 \times 1,00,000 = 5,00,000.
  • Total cost for L1 = 100L+500000100 L + 500000.
  1. For language L2:
  • Development effort = 2L10000\frac{2L}{10000} man-years.
  • Development cost = 2L10000×7,50,000=150L\frac{2L}{10000} \times 7,50,000 = 150 L.
  • Maintenance cost over 5 years = 5×50,000=2,50,0005 \times 50,000 = 2,50,000.
  • Total cost for L2 = 150L+250000150 L + 250000.
  1. Equating total costs:
100L+500000=150L+250000  ⟹  50L=250000  ⟹  L=5000100 L + 500000 = 150 L + 250000 \implies 50 L = 250000 \implies L = 5000
Final answer

B

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2011 Computer Science and Information Technology (CS)
Question
5 of 65, printed as CS Q.5
Section
Computer Science and Information Technology

This question is from a part of the syllabus that is no longer in GATE CS. It is kept because it was in the paper.

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.