What is modularity in software design?
a) Dividing a software system into smaller, manageable components
b) Combining all software functions into one module
c) Designing software without any reusable components
d) Writing code without comments
Answer:
a) Dividing a software system into smaller, manageable components
Explanation:
Modularity refers to dividing a software system into smaller, manageable components or modules. Each module focuses on a specific function or feature, making the system easier to develop, maintain, and test.
Modular design encourages code reuse, improves maintainability, and simplifies debugging. By isolating functionality into separate modules, changes to one part of the system are less likely to affect other parts.
This approach is fundamental to large software systems, enabling multiple developers to work on different modules simultaneously.