单选题
VB
题号 #453400
关于Ifx=l Theny=2语句,以下说法正确的是( )。
参考答案
C
答案解析
If……hen条件语句的一般有如下两种格式:
格式一:Ifcondition Then statements
格式二:Ifcondition Then
statements
EndIf
Condition通常是关系表达式,根据它的运算结果(True或False)来判断是否执行statements语句,所以x=1是关系表达式,y=2是赋值语句。
格式一:Ifcondition Then statements
格式二:Ifcondition Then
statements
EndIf
Condition通常是关系表达式,根据它的运算结果(True或False)来判断是否执行statements语句,所以x=1是关系表达式,y=2是赋值语句。
你可能感兴趣的试题
A.1 3 5 7 9
B.9 7 5 3 1
C.1 2 3 4 5 6 7 8 9 10
D.10 9 8 7 6 5 4 3 2 1
A.1
B.12
C.11
D.32