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
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
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
Explanation: Coupling or dependency is the degree to which each program module relies on each one of the other modules.
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
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
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
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
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.
8. A software engineer must design the modules with the goal of high cohesion and low coupling.
a) True
b) False
View Answer
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
Explanation: None.
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
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.
- Get Free Certificate of Merit in Software Engineering
- Participate in Software Engineering Certification Contest
- Become a Top Ranker in Software Engineering
- Take Software Engineering Tests
- Chapterwise Practice Tests: Chapter 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
- Chapterwise Mock Tests: Chapter 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
- Practice Information Technology MCQs
- Apply for Computer Science Internship
- Practice Computer Science MCQs
- Buy Computer Science Books
- Practice BCA MCQs