Which of the following is a measure to test how good or bad a modular design is A. Module strength B. Module coupling C. Static analysis D. All of the above E. None of the above

Module strength
Module coupling
Static analysis
All of the above E. None of the above

The correct answer is: D. All of the above

Module strength is a measure of how independent a module is. A module with high strength is one that can be easily reused and modified without affecting other modules. Module coupling is a measure of how strongly two modules are connected. A module with high coupling is one that is tightly connected to other modules, making it difficult to change or reuse. Static analysis is a technique for analyzing a program without executing it. It can be used to detect potential problems in the program’s structure, such as modules that are too tightly coupled or modules that are not well-defined.

All of these measures can be used to evaluate the quality of a modular design. A good modular design will have modules that are strong, loosely coupled, and well-defined.

Here are some additional details about each of the options:

  • Module strength is a measure of how independent a module is. A module with high strength is one that can be easily reused and modified without affecting other modules. This can be achieved by making the module’s interface as simple as possible and by avoiding global variables.
  • Module coupling is a measure of how strongly two modules are connected. A module with high coupling is one that is tightly connected to other modules, making it difficult to change or reuse. This can be caused by using global variables, passing too many parameters, or using shared data structures.
  • Static analysis is a technique for analyzing a program without executing it. It can be used to detect potential problems in the program’s structure, such as modules that are too tightly coupled or modules that are not well-defined. Static analysis can be performed manually or using a tool.

It is important to note that these are just some of the factors that can be used to evaluate the quality of a modular design. Other factors, such as the clarity of the module’s documentation and the ease of use of the module’s interface, can also be important.

Exit mobile version