English

How is modular programming different from the procedural programming paradigm?

Advertisements

Question

How is modular programming different from the procedural programming paradigm?

Distinguish Between
Advertisements

Solution

Modular programming:

  • Emphasis on the algorithm rather than data.
  • Programs are divided into individual modules.
  • Each module is independent of each others and has its own local data.
  • Modules can work with their own data as well as with the data passed to it.

Procedural programming:

  • Programs are organized in the form of subroutines or sub-programs.
  • All data items are global.
  • Suitable for small-sized software applications.
  • Difficult to maintain and enhance the program code as any change in data type needs to be propagated to all subroutines that use the same data type.
shaalaa.com
Programming Paradigms
  Is there an error in this question or solution?
Chapter 13: Introducton to Object Oriented Programming Techniques - Evaluation - Section - B [Page 232]
Advertisements
Share
Notifications



      Forgot password?
Use app×