A software engineer has the capability of thinking 100
lines of code in five
minutes and can type 100 lines of code in 10 minutes. He
takes a break for
five minutes after every ten minutes. How many lines of
codes will he
complete typing after an hour?
Answer Posted / anjan chowdhury
Here the trick is "He takes a break for five minutes after every ten minutes".
So, if he thinks first five minutes and after that he begins writing then after 5 min, he must take a break.
Hence in first round:
--------------------------------
5 min --> thinking(T)[100 lines]
next 5 min --> writing(W)[first 50 lines]
next 5 min --> break (writing is interrupted by break)(B)
--------------------------------
In second round:
--------------------------------
5 min --> W (Another 50 lines)
5 min --> T [100 lines]
5 min --> B
---------------------------------
In third round:
---------------------------------
5 min --> W (first 50 lines)
5 min --> W (Next 50 lines)
5 min --> B
---------------------------------
In fourth round:
---------------------------------
5 min --> T [100 lines]
5 min --> W (first 50 lines)
5 min --> B
---------------------------------
Hence, in total 60 mins,
Thinking : 300 lines
Writing : 250 lines
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
1. Profit and loss problem.. Two mercants sold a good of worth Rs 1000 from which one merchant A got profit from selling prices and merchant B got profit form cost price and profit for both is 25% what is difference amount.? 2.5lts solution bottles in which 4 lts of solution is filled in which 15 % of salt is mixed,1.5 lits solution is fell out and it is filled with water how much of salt content is present..? 3.Square of 21 cms and bull was tied at corner with rope of 7 cms how much area it can graze... 4.A and B can do a work 15 and 20 days respectively form which A as done half of the work and then b joind then it done 1/20th work how much many days in which a complted work which left by B.
hi.... i need tamil nadu SI police modal question paper can an one help me my mailing id is kettaven46@gmail.com
rrb second stage written exam in aptitude test model papers
Why do you want to join gnfc
If substitution is as it's burnout. Didn't remember. But this is one.
plz send Karur Vysya Bank Clerk exam previous model papers to saraphin21@gmail.com....
pls send me question paper anser for clerical exam of state bank & uniun bank of india.
what is topic on pz cussons essay writing?
Technical questions
What are the areas shell do ask questions during their technical selection test? send it to my email: kingsbogon@yahoo.com ,Thank you in advance
plz send test pattern of nsn engineers graduate.
Dear Sir/ Madam, Kindly send me the model question answers for RRB-Technician Signal(Physics/Maths) to saranya67veena@gmail.com
what is the exact qualifing marks for group 1 prelims
Sir iam going to write exam for the post of Officers under training in APSRTC. Please send me the model papers to my mail ganjiramji@gmail.com
please let me know the minimum qualifying marks in screening test of group1 2010 to be eligible for group1 main exam.