1. Cohesion is a qualitative indication of the degree to which a module
a) can be written more compactly
b) focuses on just one thing
c) is able to complete its function in a timely manner
d) is connected to other modules and the outside world
Explanation: Cohesion of a single module/component is the degree to which its responsibilities form a meaningful unit.
2. Coupling is a qualitative indication of the degree to which a module
a) can be written more compactly
b) focuses on just one thing
c) is able to complete its function in a timely manner
d) is connected to other modules and the outside world
Explanation: Coupling between modules/components is their degree of mutual interdependence.
3. Java packages and Fortran subroutine are examples of__________
a) Functions
b) Modules
c) Classes
d) Sub procedures
Explanation: A modular system consist of well defined manageable units with well defined interfaces among the units.
4. Which of the property of software modularity is incorrect with respect to benefits software modularity?
a) Modules are robust
b) Module can use other modules
c) Modules Can be separately compiled and stored in a library
d) Modules are mostly dependent
Explanation: Modularity cannot bring benefits unless the modules are autonomous or independent.
5. _______________ is a measure of the degree of interdependence between modules.
a) Cohesion
b) Coupling
c) None of the mentioned
d) All of the mentioned
Explanation: Coupling or dependency is the degree to which each program module relies on each one of the other modules.
6. Which of the following is the best type of module coupling?
a) Control Coupling
b) Stamp Coupling
c) Data Coupling
d) Content Coupling
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.
7. Which of the following is the worst type of module coupling?
a) Control Coupling
b) Stamp Coupling
c) External Coupling
d) Content Coupling
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.
8. Which of the following is the worst type of module cohesion?
a) Logical Cohesion
b) Temporal Cohesion
c) Functional Cohesion
d) Coincidental Cohesion
Explanation: Coincidental cohesion exists in modules that contain instructions that have little or no relationship to one another.
9. Which of the following is the best type of module cohesion?
a) Functional Cohesion
b) Temporal Cohesion
c) Coincidental Cohesion
d) Sequential Cohesion
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.
10. A software engineer must design the modules with the goal of high cohesion and low coupling.
a) True
b) False
Explanation: If the software is not properly modularized, a host of seemingly trivial enhancement or changes will result into death of the project.