A.software and hardware
B.software
C.hardware
D.1
[单选题]单击窗体上Commandl命令按钮时,执行如下事件过程: Private Sub Commandl _ Click() a$="software and hardware" b$=Right(a$,8) c$=Mid(b$,1,8) Msgbox c$ End sub 则在弹出的信息框的标题栏中显示的信息是( )。A.software and hardwareB.softwareC.hardwareD.and
[单选题]单击窗体上Command1命令按钮时,执行如下事件过程: Private Sub Command1-Click() a$="software and hardware" b$=Right(a$,8) c$=Mid(a$,1,8) Msgbox a $,,b$;c$,1 End sub 则在弹出的信息框的标题栏中显示的信息是( )。A.software and hardwareB.softwareC.hardwareD.1
[单选题]设有命令按钮Commandl的单击事件过程,代码如下: Private Sub Commandl_Click() Dima(3,3)As Integer Fori=1 To 3 Forj=1 To 3 a(i,j)=i*j+i Next j Nexti Sum=0 Fori=1 To 3 Sum=Sum+a(i,4-i) Next i Print Sum End SubA.20B.7C.16D.17
[单选题]设有命令按钮Commandl的单击事件过程,代码如下: Private Sub Commandl_Click() Dima(30)As Integer Fori=1 To 30 a(i)=Int(Rnd*100) Next For Each arrltem In a IfarrltemMod7=0 ThenPrintarrItem; Ifarrltem>90ThenExitFor Next End SubA.a数组中的数据是30个100以内的整数B.语句ForEacharrItem Ina有语法
[单选题]单击窗体上Com mand l命令按钮时,执行如下事件过程: Private Sub Commandl_C1ick() a$="software and hardware" b$=Right(a$,8) C$=Mid(b$,1,8) Msgbox c$ End sub 则在弹出的信息框的标题栏中显示的信息是( )。A.software and hard WaJeB.softwareC.hardwareD.and
[单选题]窗体上有一个命令按钮,命令按钮的单击事件过程如下: Private Sub Command1_Click() Dim a a=Array(1,2,3,4,5) For k=1 To 4 s=s+a(k) Next Print S End Sub 运行程序后,单击命令按钮,输出结果是A.10B.14C.15D.120
[单选题]在窗体上有一个命令按钮Commandl,编写事件代码如下:Private SuB cormmandl_Click()D.im y As Integery=0D.oy=Input Box(“y=”)IF(y Mod 10)+Int(y/10)=10 Then DeBug.print y;Loop Until y=0E.nd SuB打开窗体运行后,单击命令按钮,依次输入10、37、50、55、64、20、28、19、-19、0,立即窗口上输出的结果是A.37 55 64 28 19 19B.10 5
[单选题]在窗体上有一个命令按钮Commandl,编写事件代码如下:Private SuB commandl_Click()D.im d1 As DateD.im d2 As Dated1=#12/25/2009#d2=#1/5/2010#MsgBox DateDiFF(“WW”,d1,d2)E.nd SuB打开窗体运行后,单击命令按钮,消息框中输出的结果是A.1B.2C.10D.11
[单选题]在窗体上有一个命令按钮Commandl,编写事件代码如下:Private SuB commandl_Click()D.im x As Integer,y As Integerx=12:y=32C.all Proc(x,y)OeBug.Print x;yE.nd SuBPuBlic SuB Proc(n As Integer,Byval m As Integer)n=n Mod 10m=m Mod 10E.nd SuB打开窗体运行后,单击命令按钮,立即窗口上输出的结果是A.2 32B.12 3C.
[单选题]在窗体中有一个命令按钮Commandl,编写事件代码如下:Private Sub Command1_CliCk()D.im s As Integers=P(1)+P(2)+e(3)+P(4)debug.Print SE.nd SUbPublic Function P(N AS Integer)D.im Sum As IntegerSum=0F.or i=1 To NSum=Sum+iNext iP=SumE.nd Function打开窗体运行后,单击命令按钮,输出结果是A.15B.20C.25D