In a particular program, it is found that 1% of the code accounts for 50% of the execution time. To code the program in FORTRAN, it takes 100 man-days. Coding in assembly language is 10 times harder than coding in FORTRAN, but runs 5 times faster. Converting (rewriting) an existing FORTRAN program to an assembly language program is 4 times harder than coding in FORTRAN.
If 99% of the program is written in FORTRAN and the remaining 1% in assembly, the percentage increase in the programming time compared to writing the entire program in FORTRAN and rewriting (converting) the 1% to assembly language is
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: B. 5
Explanation
Writing 99% of the code in FORTRAN costs 99% of 100 = 99 man-days, and writing the remaining 1% directly in assembly (10 times harder than FORTRAN for that same 1%, i.e. 10 x 1 man-day) costs 10 man-days, for a total of 99 + 10 = 109 man-days. The alternative of writing the whole program in FORTRAN and then converting the 1% into assembly costs 100 + 4 = 104 man-days (found earlier). The increase is (109 - 104) / 104 x 100 ≈ 4.8%, which rounds to the closest listed option, 5%.More Software Engineering questions
- Match List I (Software Quality Characteristic) with List II (Description)List I List II A. Reliability I. Ability to transfer the software…
- The process followed in order to find difficult, unknown and hidden information about a software system is called
- Which of the following is NOT a software characteristic?
- Which of the following cohesions are better than the Procedural Cohesion? A. Functional Cohesion B. Sequential Cohesion C. Temporal Cohesio…
- Which of the following belongs to McCall's quality factors? A. Maintainability B. Usability C. Integrity D. Functionality Choose the correc…
- Estimation of software development effort for organic software in basic COCOMO is