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.
| Parameter | Language L1 | Language L2 |
|---|---|---|
| Man years needed for development | LOC / 10000 | LOC / 10000 |
| Development Cost per man year | Rs 10,00,000 | Rs 7,50,000 |
| Maintenance time | 5 years | 5 years |
| Cost of maintenance per year | Rs 1,00,000 | Rs 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?
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.
- Let the lines of code developed using language L1 be . Then the lines of code developed using L2 is .
- For language L1:
- Development effort = man-years.
- Development cost = .
- Maintenance cost over 5 years = .
- Total cost for L1 = .
- For language L2:
- Development effort = man-years.
- Development cost = .
- Maintenance cost over 5 years = .
- Total cost for L2 = .
- Equating total costs:
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.