Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

GATE | GATE CS 2011 | Question 65

  • Last Updated : 28 Jun, 2021

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?

Attention reader! Don’t stop learning now.  Practice GATE exam well before the actual exam with the subject-wise and overall quizzes available in GATE Test Series Course.

Learn all GATE CS concepts with Free Live Classes on our youtube channel.

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

Answer: (B)

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

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

Solving for x, we get x =5000


Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!