In computer science, Syntax error refers to which of the following?
- A. A loop that exists inside the body of another loop.
- B. A variable listed in a function's definition that receives a value when the function is called.
- C. An error that occurs when code does not follow the grammatical rules of the programming language. ✓
- D. A software design technique that breaks a program into separate, interchangeable modules.
Correct answer
C. An error that occurs when code does not follow the grammatical rules of the programming language.
Explanation
Syntax error refers to an error that occurs when code does not follow the grammatical rules of the programming language.