问题
单项选择题
以下语句错误的是
A.If a=1 And b=2 Then
C=3
End lf
B.If a=1 Then
C=2
Else lf a=2 Then
C=2
End lf
C.If a=1 Then
C=3
End If
D.If a=1 Then
C=2E1se If a=2 Then
C=2
End lf
Eud If
答案
参考答案:D
解析: lf选择控制结构的两种形式为:“If Then…End If”与“If Then…Else If Then…End If”,选项D的写法是错误的,多出了End If。