题库 高中信息

题干

某VB程序段如下:
Private Sub Command1_Click()
Dim a As Integer
Dim b As Boolean
a = (a + 1) * 2
b = a - 1
print a:print b
End Sub
程序运行时,单击命令按钮Command1后,变量a和b的值分别是()
A.2   1
B.2  true
C.4  -1
D.4   False
上一题 下一题 0.99难度 选择题 更新时间:2019-03-02 02:54:45

答案(点此获取答案解析)