[ Hint for questions 7 - 10 : In a particular program it is found that 1% of code accounts for 50% of execution time. To code a program in FORTRAN, it takes 100 man-day. Coding in assembly language is 10 times harder that FORTRAN but runs 5 times faster. Converting an FORTRAN program to assembly language is 4 times harder. ]
1) Software engineering aims at developing ?
1) Software engineering aims at developing ?
- Reliable Software
- Cost Effective Software
- Reliable and cost effective Software
- None Of Above
Show/Hide Answer
Answer = C
Explanation:Software engineering is the process that aims at developing the software's that are Reliable and cost effective as well.
2) A good specification should be ? Explanation:Software engineering is the process that aims at developing the software's that are Reliable and cost effective as well.
- Unambiguous
- Distinctly Specific
- Functional
- All of Above
Show/Hide Answer
Answer = D
Explanation:A good specification should have all the qualities such as unambiguos, distinctly specific and functional.
3) Which of the following is a tool in design phase ? Explanation:A good specification should have all the qualities such as unambiguos, distinctly specific and functional.
- Abstraction
- Refinement
- Information Hiding
- All of Above
Show/Hide Answer
Answer = D
4) Information hiding is to hide from user, details ? - that are relevant to him
- that are not relevant to him
- that may be maliciously handled by him
- that are confidential
Show/Hide Answer
Answer = C
Explanation:Information hiding is just the process of making inaccessible certain details that have no effect on the other parts of the program.
5) Which of the following comments about object oriented design of software, is not true ? Explanation:Information hiding is just the process of making inaccessible certain details that have no effect on the other parts of the program.
- Objects inherit the properties of class
- Classes are defined based on the attributes of objects
- an object can belong to two classes
- classes are always different
Show/Hide Answer
Answer = C
Explanation:An object can not belong to two classes.
6) Design phase includes? Explanation:An object can not belong to two classes.
- data, architectural and procedural design only
- architectural, procedural and interface design only
- data, architectural and interface design only
- data, architectural, interface and procedural design
Show/Hide Answer
Answer = D
Explanation:Design phase included the design of whole software including data, architectural, interface and procedural design.
7) To completely write the program in FORTRAN and rewrite the 1% code in assembly language, if the project needs 13 days, the team consists of ? Explanation:Design phase included the design of whole software including data, architectural, interface and procedural design.
- 13 programmers
- 10 programmers
- 8 programmers
- 100/13 programmers
Show/Hide Answer
Answer = C
Explanation: Writing the whole program in FORTRAN takes 100 man-day, remaining 1% code requires 4 man-day. If it is completed in 13 days then 104/13 = 8 programmers it required.
8) If 99% of the program is written in FORTRAN and the remaining 1% in assembly language, the percentage increase in the programming time compared to writing the entire program in FORTRAN and rewriting the 1% in assembly language is ? Explanation: Writing the whole program in FORTRAN takes 100 man-day, remaining 1% code requires 4 man-day. If it is completed in 13 days then 104/13 = 8 programmers it required.
- 10
- 5
- 13
- 8
Show/Hide Answer
Answer = B
Explanation:The first case takes 99+10=109 man-day. The second case require 100+4=104 man-day. Percentage = (109-104)*100/100 = 5
9) If the entire program is written in FORTRAN, the percentage increase in the execution time, compared to writing the entire program in FORTRAN and rewriting the 1% in assembly language is ? Explanation:The first case takes 99+10=109 man-day. The second case require 100+4=104 man-day. Percentage = (109-104)*100/100 = 5
- 0.9
- 0.8
- 8
- 9
Show/Hide Answer
Answer = B
Explanation:Let the first case takes 100 units of time to execute. Second case will take 99 +(1/5) units of time. As the 1% coding in assembly language will take 1/5 units of time. Hence the required percentage = 0.8*100/100 = 0.8.
10) If 99% of the program is written in FORTRAN and the remaining 1% in assembly language the percentage increase in the execution time, compared to writing the 1% in assembly language is ? Explanation:Let the first case takes 100 units of time to execute. Second case will take 99 +(1/5) units of time. As the 1% coding in assembly language will take 1/5 units of time. Hence the required percentage = 0.8*100/100 = 0.8.
- 0.9
- 0.1
- 1
- 0
Show/Hide Answer
Answer = D
Explanation:In both cases the final program will have the same 99% of code in FORTRAN and the remaining 1% in assembly language. Hence the execution time will remain same.
Explanation:In both cases the final program will have the same 99% of code in FORTRAN and the remaining 1% in assembly language. Hence the execution time will remain same.
Do You Like This? Please take 5 seconds to share with your firends.
0 comments:
Post a Comment