1.

Modular programming involves:1. Modules that solve individual tasks2. Processing from particular to general3. Problems decomposed into logical sub-problems1. 1, 2 and 32. 1 and 2 only 3. 1 and 3 only 4. 2 and 3 only 5.

Answer» Correct Answer - Option 3 : 1 and 3 only 

Explanation:

Modular programming is an approach to software development in which the individual functions of a program are separated into self-contained components called modules.

Each module contains everything necessary to fulfill its own functionality and can be edited and modified without the entire project being affected.

Modular programming is accomplished by maintaining a consistent module interface that other software components used to access each module's functions.[

They are designed in such a way as to minimize dependencies between different modules. Teams can develop modules separately and do not require knowledge of all modules in the system.

Languages that support the module concept are IBM Assembler, COBOL, RPG, FORTRAN, Morpho, Zonnon, and Erlang, among others.

The benefits of using modular programming include:

  1. Less code has to be written.
  2. A single procedure can be developed for reuse, eliminating the need to retype the code many times.
  3. Programs can be designed more easily because a small team deals with only a small part of the entire code.
  4. Modular programming allows many programmers to collaborate on the same application.
  5. The code is stored across multiple files.
  6. Code is short, simple, and easy to understand.
  7. Errors can easily be identified, as they are localized to a subroutine or function.
  8. The same code can be used in many applications.
  9. The scoping of variables can easily be controlled.


Discussion

No Comment Found

Related InterviewSolutions