阅读下面的程序:
Private Sub Form_Click()
Dim Check As Boolean, Counter As Integer
Check = True
Counter = 5
Do
Do While Counter < 20
Counter = Counter + 1
If Counter = 10 Then
Check = False
Exit Do
End If
Loop
Loop Until Check = False
Print Counter
End Sub
程序运行后,单击窗体,输出结果为______。
第1题:
阅读下面的程序:
Private Sub Form_Click( )
Dim Check As Boolean,Counter As Integer
Check=Tree
Counter=5
DO
DO While Counter<20
Counter=Counter+1
If Counter=10 Then
Check=False
Exit Do
End if
Loop
Loop Until Check=False
Print Counter
End Sub
程序运行后,单击窗体,输出结果为【 】。
第2题:
阅读下面的程序: Private Sub Form_Click() Dim Check, Counter Check=True Counter=0 Do Do While Counter < 20 Counter=Counter + 1 If Counter=10 Then Check = False Exit Do End If Loop Loop Until Check = False Print Counter, Check End Sub 程序运行后,单击窗体,输出的结果为
A.15 0
B.20 -1
C.10 True
D.10 False
第3题:
请阅读下面程序为使该程序正确执行,下画线处的语句应是( )。
A.t.sleep( )
B.t.yield( )
C.t.interrupt( )
D.t.start( )
第4题:
阅读下面的程序段: K=0 Forl=1 t03 For J=l to I K=K+J Next J Next 1 执行上面的语句后,K的值为______。
A.8
B.10
C.14
D.21
第5题:
阅读程序:Private Sub Form_ Click() a=0 For j=1 To 15 a=a+j Mod 3 Next j Print aEnd Sub 程序运行后,单击窗体,输出结果是______。
A.105
B.1
C.120
D.15