COMPUTER SOFTWARE
PROGRAMMING LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
read the program and begin execution.
|
|
function imperfectly to express computations.
|
|
occur when the programmer does not follow the rules of the language
|
|
None of the above
|
Detailed explanation-1: -A syntax error occurs when the code given does not follow the syntax rules of the programming language. Examples include: misspelling a statement, eg writing pint instead of print. using a variable before it has been declared.
Detailed explanation-2: -A syntax error occurs when a programmer writes an incorrect line of code. Most syntax errors involve missing punctuation or a misspelled name. If there is a syntax error in a compiled or interpreted programming language, then the code won’t work.
Detailed explanation-3: -In computer science, a syntax error is an error in the syntax of a sequence of characters or tokens that is intended to be written in a particular programming language. For compiled languages, syntax errors are detected at compile-time. A program will not compile until all syntax errors are corrected.