Here's the question bank on all the general aptitude topics.
In a particular program, it is found that 1% of the code accounts for 50% of the execution time. To code a program in C++, it take s100 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 consists of
ExplanationAt first, 100% work can be done in 100 days means 1% work in a man day.Now, writing the code in assembly language is 10 times harder means 10 times more time consuming. Also converting existing code from C++ is 4 times easier, that is, less time-consuming.? Considering the overall scenario, we can say 100% work can be done in:100 ×\(\frac{10}{4}\) = 250 days.So, 1% work will be done in 2.5 days.Now,99% work in C++, +1% rewriting code will take = 99 × 1 + 1× 2.5= 101.5 man days.But it is given that 13 days to complete so 101.5 ÷ 13 = 8 programmer we need.Therefore the correct answer is option 3.
Scan QR code to download our App for
more exam-oriented questions
OR
To get link to download app