A. 12
B.30
C.24
D.18
[单选题]有如下程序:Private Sub Form_Click()D.im i As Integer, Sum As IntegerSum=0F.or i=2 To 10If i Mod 2=0 And i Mod 3<>0 ThenSum=Sum+iE.nd IfNextPrint SumE.nd Sub程序运行后,单击窗体,输出结果为A.12B.30C.24D.18
[单选题]有如下程序: Private Sub Form_Click() Dim i As Integer, Sum As Integer sum=0 For i=2 To 10 If i Mod 2<>0 And i Mod 3=0 Then sum=sum+i End If Next i Print sum End Sub 程序运行后,单击窗体,输出结果为______。A.12B.30C.24D.18
[单选题]有如下程序: Private Sub Form_Click( ) Dim i As Integer, Sum As Integer Sum = 0 For i = 2 To 10 If i Mod 2< >0 And i Mod 3=0 Then Sum = Sum + i End If Next Print Sum End Sub 程序运行后,单击窗体,输出结果为A.12B.30C.24D.18
[单选题]有如下程序:Private Sub Form_Click()D.im i As Integer,Sum As IntegerSum=0F.or i=2 To 10If i Mod 2<>0 And i Mod 3=0 ThenSum=Sum+iE.ndIfNextPrint SumE.nd Sub程序运行后,单击窗体,输出结果为A.12B.30C.24D.18
[单选题]有如下程序: Private Sub Form_Click() Dim i As Integer,Sum As Integer Sum=0 For i=2 To 10 If i Mod 2<>0 And i Mod 3=0 Then Sum=Sum+i End If Next Print Sum End Sub 程序运行后,单击窗体,输出结果为A.12B.30C.24D.18
[单选题]有如下事件过程:Private Sub Form. Click()D.im n As Integerx=0n=InputBox(”请输入一个整数”)F.or i=1 To iF.or j=1 To ix=x+1Next jNext 1Print xE.nd sub程序运行后,单击窗体,如果在输入对话框中输入5,则在窗体上显示的内容是( )。A.13B.14C.15D.16
[单选题]设有如下程序:Private Sub Form_Click()D.im i As Integer,x As String,Y As Stringx=”ABCDEFG”F.or i=4 To 1 Step-1y=Mid(x,i,i)+yNext iPrint yE.nd Sub程序运行后,单击窗体,输出结果为A.ABCCDEDEFGB.AABBCDEFGC.ABCDEFGD.AABBCCDDEEFFGG
[单选题]下面程序: Private Sub Form. _Click () Dim x, y, z As Integer x=5 y=7 z=0 Call P1(x, y, z) Print Str (z) End Sub Sub P1 (ByVal a As Integer, ByVal b As Integer , c As Integer) c= a+b End Sub 运行后的输出结果为______。A.0B.12C.Str(z)D.显示错误信息
[单选题]有如下程序: 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 0B.20 -1C.1
[单选题]有如下程序: 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 0B.20