what is the difference between a syntax error and a logic error? quizlet
Syntax errors are errors in your code such as a missing semi-colon. Run time errors are errors that appear during run time such as an infinite loop. Logic errors appear when your code does not do what you want it to do because of the logic such as the comparisons are wrong.
A syntax error is an error in commands. For example, the following command: dir (path) which displays a directory in a Windows Command Prompt. The following, dir c:/windows/system32 would show the contents of the Windows/system32 directory in the C: drive.