单项选择题
以下程序段运行的结果是:_______。
Dima(-1 To 5)As Boolean
Dim flag As Boolean
flag=False
Dim i As Integer
Dim j As Integer
Do Until flag=True
For i=-1 To 5
j=j+1
If a(i)=False Then
a(i)=True
Exit For
End If
If i=5 Then
flag=True
End If
Next
Loop
Print j
A.20
B.7
C.35
D.8
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
执行以下语句后显示结果为_______。 Dim x As Integer If x Then Print x Else Print x-1
A.1
B.0
C.-1
D.不确定
点击查看答案&解析
单项选择题
在窗体上画一个文本框,其名称为Text1。为了在程序运行后Text1中的文本不可编辑, 应当使用的语句:_______。
A.Text1.Clear
B.Text1.Locked=True
C.Text1.Visible=False
D.Text1.Enabled=True
点击查看答案&解析
相关试题
下列程序段的执行结果为_______。 ...
编写如下事件过程: Private Sub Form ...
在窗体上画一个命令按钮,其名称为Command...