Skip to content
Related Articles

Related Articles

Improve Article
GATE | GATE CS 2011 | Question 65
  • Last Updated : 03 Dec, 2013

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 Ll. 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?

(A) 4000
(B) 5000
(C) 4333
(D) 4667


Answer: (B)

Explanation: Let LOC of L1=x, so LOC of L2=2x
Now,

(x/10000)*1000000 + 5*100000 = (2x/10000)*750000 + 5*50000

Solving for x, we get x =5000

Source: http://clweb.csa.iisc.ernet.in/rahulsharma/gate2011key.html

Quiz of this Question

Attention reader! Don’t stop learning now. Learn all GATE CS concepts with Free Live Classes on our youtube channel.

My Personal Notes arrow_drop_up
Recommended Articles
Page :