Multiple Choice Questions On Software Engineering - Set 3

[ 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. Reliable Software
  2. Cost Effective Software
  3. Reliable and cost effective Software
  4. 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 ?
  1. Unambiguous
  2. Distinctly Specific
  3. Functional
  4. 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 ?
  1. Abstraction
  2. Refinement
  3. Information Hiding
  4. All of Above
Show/Hide Answer
Answer = D
4) Information hiding is to hide from user, details ?
  1. that are relevant to him
  2. that are not relevant to him
  3. that may be maliciously handled by him
  4. 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 ?
  1. Objects inherit the properties of class
  2. Classes are defined based on the attributes of objects
  3. an object can belong to two classes
  4. classes are always different
Show/Hide Answer
Answer = C 
Explanation:An object can not belong to two classes. 

6)  Design phase includes?
  1. data, architectural and procedural design only
  2. architectural, procedural and interface design only
  3. data, architectural and interface design only
  4. 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 ?
  1. 13 programmers
  2. 10 programmers
  3. 8 programmers
  4. 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 ?
  1. 10
  2. 5
  3. 13
  4. 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 ?
  1. 0.9
  2. 0.8
  3. 8
  4. 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 ?
  1. 0.9
  2. 0.1
  3. 1
  4. 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.


Do You Like This? Please take 5 seconds to share with your firends.

0 comments:

Post a Comment