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

A.Missing braces in a loop
B.A variable not initialized before use
C.A missing semicolon at the end of a statement
D.Wrongly named function
优质解答
答案
B
解析
A semantic error refers to incorrect usage of language constructs that may pass the syntax check but result in incorrect behavior or logic in the program. A variable not initialized before use is a semantic issue.
计算机专业英语单选题中等AI生成