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
there are two boats across a river.one of the boat starts from x and proceeds to y at the other river end.while the other boat starts from y and proceeds to x.the first time these two boats meet is 200 kms from x.they continue their journey reach y and x respectively. when they come back they meet at a point which is 400 kms from y .find the width of the river ..
A sequence is given. You should find out error & write correct 1 2 5 10 13 26 29 48.
A car is traveling at a uniform speed. The driver sees a milestone showing a 2-digit number. After traveling for an hour the driver sees another milestone with the same digits in reverse order. After another hour the driver sees another milestone containing the same two digits. What is the average speed of the driver.
In 80 coins one coin is counterfeit what is minimum number of weighings to find out counterfeit coin
Hi, Can anybody please send me the last year question papers of Oriental Bank of Commerce PO exam. My email ID is: yamini.friend14@gmail.com Thanks.
Two trains move in the same direction at 50 kmph and 32 kmph respectively. A man in the slower train observes the 15 seconds elapse before the faster train completely passes by him. What is the length of faster train?
present ages of sameer and anand are in the ratio of 5 : 4 respectively. Three years hence, the ratio of their ages will become 11 : 9 respectively. What is anand's present age in years?
The hour hand lies between 3 and 4. Tthe difference between hour and minute hand is 50 degree.What are the two possible timings?
sir iam asking you assistant stastical officer previous question paper
If Log2 x - 5 Log x + 6 = 0, then what would the value / values of x be?
Next number in the series: 77,49,36,18,?
Find the next letter in the series Q,W,E,R,T,--
In the word ORGANISATIONAL, if the first and second, third and forth, fifth and sixth words are interchanged up to the last letter, what would be the tenth letter from right?
Ajay can build a house in 16 days and Barry can do the same job in 12 days. With help of Chintu, they did the job in 4 days only. How many days Chintu can do the job?
Each row of letters or numbers has a rule connecting them. Write the next number or letterin the brackets. 124 , 62 , 60 , 30 , 28 , 14 , (_ _ _)