Question: what is the difference between a syntax logic and runtime error?
Answer: A syntax error is an error in the source code of a program. ... A logic error (or logical error) is a 'bug' or mistake in a program's source code that results in incorrect or unexpected behaviour. It is a type of runtime error that may simply produce the wrong output or may cause a program to crash while running.