1
AssignmentMultiple Choice

Readable Code

Question 1 • VA-Information Technology Fundamentals B

Which of the following is true about syntax errors?

Answer
A
All programs use the same syntax, so all syntax errors are the same.
B
All programs use different syntax, but all syntax errors are the same.
C
Syntax errors are specific to a specific programming language.
D
Some programs do not have a syntax.

Explanation

Programming languages have their own rules for how code must be written. A syntax error happens when code breaks the rules of the language being used, so the error is specific to that language. For example, a mistake that is invalid in Python might be valid in another language.

AI-written and checked against the verified answer.

Next