What is the main objective of modular programming?

Options

  • A. To increase program complexity
  • B. To divide a program into manageable independent modules
  • C. To eliminate the need for functions
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

B. To divide a program into manageable independent modules

Detailed Explanation

Explanation: Modular programming divides a complex program into smaller modules. Each module handles a specific task, improving readability, reusability, testing and maintenance.