单项选择题
在窗体上画一个命令按钮(名称为Command1)和一个文本框(名称为Text1),然后编写如下事件过程:
Private Sub Command1_Click()
x=Val(Text1.Text)
Select Case x
Case 1.3
y=x*x
Case Is>=10.Is<=-10
y=x
Case-10 To 10
y=-x
End Select
End Sub
程序运行后,在文本框中输入3,然后单击命令按钮,则以下叙述中正确的是______。
A) 执行y=x*x
B) 执行y=-x
C) 先执行y=x*x,再执行y=-x
D) 程序出错
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下面正确使用动态数组的是______。
A) Dim arr(30) As Integer
ReDim arr(10)
B) Dim arr()
ReDim arr(30) As Integer
C) Dim arr() As Integer
ReDim arr(30) As String
D) Dim arr() As Integer
ReDim arr(3 ,6)
点击查看答案&解析
单项选择题
在窗体上画一个名称为Command1的命令按钮,然后编写如下程序: Private Sub Command1_Click() Static X As Integer Static Y As Integer Cls Y=2 Y=Y+3 X=3+X Print X.Y End Sub 程序运行时,三次单击命令按钮Command1后,窗体上显示的结果为______。
A) 3
5
B) 5
5
C) 9
5
D) 9
13
点击查看答案&解析
相关试题
List1.List(k)
Not EOF(2)
D
List1.ListCount
#2