Question Detail

COS 102 concept of problem solving; lecture 1 week 2 Objective Question

Question

According to the 'Why Debugging is Hard' section (Slide 16), what is a reason for debugging difficulty concerning the relationship between an error and its cause?
Options
A Programs are always too long to read.
B There may be no obvious relationship between the external manifestation(s) of an error and its internal cause(s).
Correct Answer
C Compilers are designed to hide errors.
D Programmers intentionally write complex code.
Correct Answer

Option B is the correct answer.

Detailed Explanation

The first bullet point on Slide 16 states: 'There may be no obvious relationship between the external manifestation(s) of an error and its internal cause(s).'

Hint

Check the initial reasons listed under 'Why Debugging is Hard' on Slide 16.

Question Info