Software engineering Unit 3 mcq PDF

Title Software engineering Unit 3 mcq
Author Makbool Shah warsi
Course Computer Science
Institution Dr. A.P.J. Abdul Kalam Technical University
Pages 6
File Size 104 KB
File Type PDF
Total Downloads 45
Total Views 178

Summary

AKTU 6th semester all subjects and there practice materials. with answers and explanation....


Description

SOFTWARE ENGINEERING KCS 601 UNIT 3 QUIZ 1 1. _______________ is a measure of the degree of interdependence between modules. a) Cohesion b) Coupling c) None of the mentioned d) All of the mentioned Answer: b Explanation: Coupling or dependency is the degree to which each program module relies on each one of the other modules. 2. Which of the following is the best type of module coupling? a) Control Coupling b) Stamp Coupling c) Data Coupling d) Content Coupling Answer: c Explanation: The dependency between module A and B is said to be data coupled if their dependency is based on the fact they communicate by only passing of data. 3. Which of the following is the worst type of module coupling? a) Control Coupling b) Stamp Coupling c) External Coupling d) Content Coupling Answer: d Explanation: Content coupling occurs when module A changes data of module B or when control is passed from one module to the middle of another. 4. Which of the following is the worst type of module cohesion? a) Logical Cohesion b) Temporal Cohesion c) Functional Cohesion d) Coincidental Cohesion Answer: d Explanation: Coincidental cohesion exists in modules that contain instructions that have little or no relationship to one another. 5. Which of the following is the best type of module cohesion? a) Functional Cohesion b) Temporal Cohesion c) Functional Cohesion d) Sequential Cohesion Answer: a Explanation: Functional Cohesion is a type of cohesion in which the tasks performed by a software module all contribute to the performance of a single function. 6. A software engineer must design the modules with the goal of high cohesion and low coupling. a) True b) False Answer: a Explanation: If the software is not properly modularized, a host of seemingly trivial enhancement or changes will result into death of the project. 7. In what type of coupling, the complete data structure is passed from one module to another? a) Control Coupling b) Stamp Coupling c) External Coupling

d) Content Coupling Answer: b 8. If all tasks must be executed in the same time-span, what type of cohesion is being exhibited? a) Functional Cohesion b) Temporal Cohesion c) Functional Cohesion d) Sequential Cohesion Answer: b Explanation: A Module exhibits temporal cohesion when it contains tasks that are related by the fact that all tasks must be executed in the same time-span. 9. What is Cyclomatic complexity? a) Black box testing b) White box testing c) Yellow box testing d) Green box testing Answer: b Explanation: Cyclomatic complexity measures the amount of decision logic in the program module.Cyclomatic complexity gives the minimum number of paths that can generate all possible paths through the module. 10. Function Point Computation is given by the formula___________________? A. FP = [count total * 0.65] + 0.01 * sum(Fi) B. FP = count total * [0.65 + 0.01 * sum(Fi)]. C. FP = count total * [0.65 + 0.01] * sum(Fi) D. FP = [count total * 0.65 + 0.01] * sum(Fi) Ans: B 11. In transform analysis, input portion is called: a) Afferent branch b) Efferent branch c) Central Transform d) None of the above Ans: a 12. The Function Point (FP) metric is: a) Calculated from user requirements b) Calculated from Lines of code c) Calculated from software’s complexity assessment d) None of the above Ans: c 13. The approach used for requirements elicitation in software design and development process: a) View Points b) Interview c) Use-Cases d) All of these Ans: d 14. Among the following, a representation that can be used for designing a system as a collection of procedures or modules: a) Data flow diagrams b) Activity Chart

c) Flow chart d) ER Modeling Ans: a 15. Match each UML diagram in List I to its appropriate description in List II List I List II (a) State Diagram (i) Describes how the external entities (people, devices) can interact with the system (b) Use-Case Diagram (ii) Used to describe the static or structural view of a system (c) Class Diagram (iii) Used to show the flow of a business process, the steps of a use-case or the logic of an object behaviour (d) Activity Diagram (iv) Used to describe the dynamic behaviour of objects and could also be used to describe the entire system behaviour a. (a)-(i); (b)-(iv); (c)-(ii); (d)-(iii) b. (a)-(iv); (b)-(ii); (c)-(i); (d)-(iii) c. (a)-(i); (b)-(iv); (c)-(iii); (d)-(ii) d. (a)-(iv); (b)-(i); (c)-(ii); (d)-(iii) Ans: d 16. Software coupling involves dependencies among pieces of software called modules. Which of the following are correct statements with respect to module coupling? P: Q: R:

Common coupling occurs when two modules share the same global data. Control coupling occurs when modules share a composite data structure and use only parts of it. Content coupling occurs when one module modifies or relies on the internal working of another module.

Choose the correct answer from the code given below: a. P and Q only b. P and R only c. Q and R only d. All of P, Q and R Ans: b 17. A design having modules with high fan-out numbers is not a good design. a) True b)False Ans: a 18. Function oriented is a……….approach a) top -down b) bottom-up Ans: a 19. In ……………….. One of several possible paths through the DFD is traversed depending upon the input data value. a) Transform analysis b) Transaction analysis Ans: b 20. In …………………….. ,The first step in transform analysis: Is to -Divide the DFD into 3 parts:

•input, •logical processing, •output a) Transform analysis b) Transaction analysis Ans: a Quiz 2 1. “Identify ……….. if you are after procedural design and……….. if you are after object-oriented design.” a) nouns, verbs b) verbs, nouns Ans: b

2. In ……………….software is not developed by designing functions but by designing objects. a) Object oriented design b) Function oriented design c)Procedural design d) None Ans: a 3. In……………..state information is not shared in a centralized data but is distributed among the objects of the system. a) Object oriented design b) Function oriented design c)Procedural design d) None Ans: a 4. Structured analysis and Structured design is an ………….. approach. a) Object oriented design b) Function oriented design Ans: b 5. Object oriented design is………approach a) top-down b) bottom-up Ans:b 6. Arrangement of modules in a hierarchy ensures: a) Low fan-out b) Abstraction c) Decomposition d) Both a and b Ans:d 7. ………… is a measure of functional strength of a module. a) Coupling b) Cohesion Ans: b 8. Functional independence ensure a) Reduced error propagation b) Reuse of modules c) Degree of interaction between modules is low d) All of the above Ans: d

9. During the detailed design of a module, which one of the following is designed? a) Data structure and algorithms b) Control Structure c) Data Flow Structure d) Module call relationships Ans: a 10. Which one of the following is correct ordering of the coupling modules from strongest to weakest? a) content, common, control, stamp, data b) common, content, control, stamp, data c) content, data, common, control, stamp d) data, control, common, stamp, content Ans: a 11. Which one of the following is not an objective of the high-level design activity? a) To identify the important components of the system b) To design the layering among the components of the system c)To design the algorithms used in different components d) To identify call relationships among different components Ans: c 12. A DFD represents which one of the following? a) The conditions based on which data items may be processed b) The order in which different activities are performed c) The transformation of data through processing stations d) The order in which various functions of a program are invoked Ans: c 13. For a given programming problem , a DFD model depicts which of the following?/ a) data flow b) control flow c) decision flow d) atomic conditions flow Ans: a 14. Which one of the following statements is not true for a DFD model? a) It is a hierarchical diagram b) It represents code structure c) It does not represents decisions and control flows d) It represents decomposition of a function and data into finer forms Ans: b 15. In a procedural design approach, during the detailed design stage, which one of the following is undertaken? a) Module structure is designed b) Data flow representation is developed c) Data structure and algorithms for individual modules are designed d) Structure chart is developed Ans: c 16. A context diagram should not represent which one of the following ? a) External entities b) Data input to the system by external entities c) Output data generated by the system d) Module structure Ans: d

17. Which one of the following correctly characterizes balancing of DFDs? a) Data flowing into or out of a bubble must match the data flows at the next level of DFD. b) Data flowing into or out of a bubble must match the data flows out of the bubble c) Data flowing into or out of a bubble must match the data flows to the other bubbles d) Data flowing into or out of a bubble must match the data flow out of the bubble Ans: a 18. Which one of the following information is not be present in a structure chart model of a software system? a) Various modules making up the system b) Module call structure c) Parameters passed among different modules d) Data structures and algorithms of the modules Ans: d 19. The packing of data and functions into a single unit in a program is known as: a) polymorphism b) abstraction c) encapsulation d) inheritance Ans: c 20. Which one of the following is an important advantage of data hiding? a) Low cohesion b) High coupling c) Low fan out d) Low coupling Ans: d 21. Which one of the following can be said about abstract data type(ADT)? a) It is a synonym for an abstract class b) A data type that cannot be instantiated c) A data type that can only be used through the operations defined on it d) It is the same as a collection of data items Ans: c...


Similar Free PDFs