Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question 9 of 25 why is it easier to fix errors in modular programs tha…

Question

question 9 of 25
why is it easier to fix errors in modular programs than in non - modular programs?
a. because functions cant contain errors
b. because modular programs can be debugged automatically
c. because errors in functions fix themselves
d. because errors in a single module are easier to identify and edit

Explanation:

Brief Explanations
  • Option A is incorrect because functions can definitely contain errors.
  • Option B is incorrect as modular programs do not get debugged automatically; debugging still requires human intervention or specific debugging tools.
  • Option C is incorrect because errors in functions do not fix themselves; they need to be identified and corrected manually.
  • Option D is correct. In modular programming, a program is divided into separate modules (or functions). If there is an error, it is easier to locate which specific module has the error since each module has a specific task. Then, that module can be edited to fix the error, unlike non - modular programs where the code is more monolithic and errors can be harder to pinpoint.

Answer:

D. Because errors in a single module are easier to identify and edit