Which of the following is/are advantages of modular programming? (i) Easier to…
2022
Which of the following is/are advantages of modular programming?
(i) Easier to test
(ii) Reusability
- A.
Only (i)
- B.
Only (ii)
- C.
Both (i) and (ii)
- D.
Neither (i) nor (ii)
Attempted by 143 students.
Show answer & explanation
Correct answer: C
Modular programming separates functionality into independent modules. This structure makes individual components easier to test in isolation, validating statement (i). Additionally, well-defined modules can be reused across different projects or within the same system, confirming statement (ii). Both listed benefits are standard advantages of this approach.