首页题目详情
Which of the following is an example of a syntactic error?

A.Using a variable before it is declared
B.A missing semicolon at the end of a statement
C.Incorrect use of a function
D.Incorrect logic in the code
优质解答
答案
B
解析
A syntactic error occurs when the code violates the grammatical rules of the programming language, such as a missing semicolon. Semantical errors involve incorrect logic or function usage.
计算机专业英语单选题中等AI生成