Exam-style question
Try this first
How do subprograms contribute to easier debugging?.
- A.They automatically fix syntax errors.
- B.They isolate sections of code, making errors easier to locate.
- C.They prevent all runtime errors from occurring.
- D.They generate a full report of all possible errors before execution.
Answer and explanation
Concise answer
They isolate sections of code, making errors easier to locate.
Why this is correct
Subprograms help isolate problems to specific code blocks, simplifying the process of finding and correcting errors. They do not automatically fix errors, prevent all errors, or generate exhaustive pre-execution reports.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
