下列语句错误的是

admin2013-04-11  29

问题  下列语句错误的是

选项 A、If a=3 And b=2 Then     c=3   End If
B、If a=1 Then     c=2     Else If a=2   End If
C、If a=3 And b=2 Then      c=2    Else If a=2 Then      c=3   End If
D、If a=1 Then c=2

答案2

解析 本题考查If句型的使用。If语句有单行语句与块结构两种。A、D为单行语句,C为块结构语句,而B由于缺少Else If后面的语句块而不健全,是错误的,故本题选B。
转载请注明原文地址:https://kaotiyun.com/show/34hp777K
0

最新回复(0)