Answer:
The answer to this question is given below in the explanation section.
Step-by-step explanation:
A logic error occurs when a program runs accurately, but yields the wrong result. Therefore, it is difficult to detect. However, a program can detect syntax errors rapidly, because they occur in the structure of programming code during the compilation stage.