Software Engineering Questions and Answers – Modularity in Software Design

This set of Software Engineering Multiple Choice Questions & Answers (MCQs) focuses on “Modularity in Software Design”.

1. Java packages and Fortran subroutine are examples of__________
a) Functions
b) Modules
c) Classes
d) Sub procedures
View Answer

Answer: b
Explanation: A modular system consist of well defined manageable units with well defined interfaces among the units.

2. 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
View Answer

Answer: d
Explanation: Modularity cannot bring benefits unless the modules are autonomous or independent.

3. _______________ is a measure of the degree of interdependence between modules.
a) Cohesion
b) Coupling
c) None of the mentioned
d) All of the mentioned
View Answer

Answer: b
Explanation: Coupling or dependency is the degree to which each program module relies on each one of the other modules.
advertisement
advertisement

4. Which of the following is the best type of module coupling?
a) Control Coupling
b) Stamp Coupling
c) Data Coupling
d) Content Coupling
View Answer

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.

5. Which of the following is the worst type of module coupling?
a) Control Coupling
b) Stamp Coupling
c) External Coupling
d) Content Coupling
View Answer

Answer: c
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.

6. Which of the following is the worst type of module cohesion?
a) Logical Cohesion
b) Temporal Cohesion
c) Functional Cohesion
d) Coincidental Cohesion
View Answer

Answer: d
Explanation: Coincidental cohesion exists in modules that contain instructions that have little or no relationship to one another.

7. Which of the following is the best type of module cohesion?
a) Functional Cohesion
b) Temporal Cohesion
c) Functional Cohesion
d) Sequential Cohesion
View Answer

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.
advertisement

8. A software engineer must design the modules with the goal of high cohesion and low coupling.
a) True
b) False
View Answer

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.

9. 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
View Answer

Answer: b
Explanation: None.
advertisement

10. 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
View Answer

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.

Sanfoundry Global Education & Learning Series – Software Engineering.

Here’s the list of Best Books in Software Engineering.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.