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