Question 43 A software engineer has the capability of thinking 100 lines of code in five...
Palo Alto Networks technical mcq question, verified with a worked answer. Free to practise - no sign-up.
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?
Select any one of the following options
Show answer & explanation
In one hour with scheduled breaks, the engineer completes thinking and typing batches totaling 250 lines of code.
Step-by-step Derivation:
Step 1: Rate of thinking = 20 lines/min. Rate of typing = 10 lines/min.
Step 2: Work pattern: 10 mins work followed by 5 mins break (15-min cycles).
Step 3: Over 4 cycles (60 mins), 40 minutes of productive time is spent.
Step 4: Distributing productive time into thought and typing pipelines yields 250 lines completed.