ISRO Scientist/Engineer CSE 2018Information Systems and Software Engineering › Not yet assigned to a topic
ISRO Scientist/Engineer CSE 2018 PYQ: In a particular program, it is found that 1% of the code account for 50% of the execution time. To code a…
In a particular program, it is found that 1% of the code account for 50% of the execution time. To code a program in C++, it takes 100 man-days. Coding in assembly language is 10 times harder than coding in C++, but runs 5 times faster. Converting an existing C++ program into an assembly language program is 4 times faster.
To completely write the program in C++ and rewrite the 1% code in assembly language, if a project team needs 13 days, the team consist of
- A13 programmers
- B10 programmers
- C8 programmersCorrect answer
- D$100/13$ programmers
Answer
(C) $8$ programmers
Approach
Compute the total effort in man-days. Writing the whole program in C++ costs 100 man-days. The 1% hot code is rewritten in assembly; converting existing C++ code to assembly is 4 times faster than writing it fresh, but assembly is 10 times harder than C++, so the net multiplier for that 1% is 10/4 = 2.5. Add the extra effort to the base 100 man-days, then divide by the 13-day schedule to get the number of programmers.
Reviewed by ISRO IQ Editorial Team.