单选题在窗体上画1个名称为Command1的命令按钮,然后编写如下事件过程:
Option Base 1
Private Sub Command1_Click()
Dim a(5, 5)As Integer
For i=1 To 5
For j=1 To 5
a(i,j)=(i+j)*5/10
Next j
Next i
s=0
For i=1 To 5
S=s+a(i,i)
Next i
Print s
End Sub
程序运行后,单击命令按钮,输出结果是______。
单选题Print #语句的作用是( )。
单选题如果要在窗体上画一个标签,应在工具箱窗口中选择的图标是______。A.B.C.D.
单选题代数式x1-|a|+In10+sin(x2+2π)/cos57°对应的Visual Basic表达式是( )。
单选题在窗体上添加一个命令按钮,名为Command1,其单击事件中有下列程序段,则事件过程执行后,文本框中输出( )。 For i==1 To 4 For j=1 To 3 x=3 For k=1 To 2 x=x+3 Next k Next j Next i Text1. Text=Str(x)
单选题假定有下列程序段
For i=1 TO 3
For j=5 TO 1 Step-1
Print i*j
Next j
Next i
则语句Print i*j的执行次数是( )。
单选题单击一次命令按钮之后,下列程序代码的执行结果为______ 。 Private Sub Command1_ Click() a = fun(4) + fun(5) Print a; End Sub Public Function fun (n As Integer) Static Num For i = 1 To n Num = Num + i Next i fun = Num End Function
单选题在窗体上画一个命令按钮,然后编写如下事件过程:
Private Sub Command1_Click()
x=InputBox("Enter the First integer")
y=InputBox("Enter the Second integer")
Print y+x
End Sub
程序运行后,单击命令按钮,先后在两个输入对话框中分别输入456和123,则输出结果是______。
单选题有如下程序,运行时从键盘输入3,输出结果是 ______。 Private Sub Command1_Click() a=InputBox("请输入一个数字:") Select Case a Case Is>2 b=a+1 Case Is>3 b=a+2 Case Is>4 b=a+3 Case Is>5 b=a+4 End Select Print a + b End Sub
单选题在设计阶段,属性窗口的内容是______。
单选题有如下程序: Option Base 1 Private Sub Form_Click() Dim arr, Sum Sum=0 arr=Array(1, 3, 5, 7, 9, 11, 13, 15, 17, 19) For i=1 To 10 If arE(i)/3=arr(i)/3 Then Sum=Sum+arr(i) End If Next i Print Sum End Sub 程序运行后,单击窗体,输出结果为______。
单选题以下叙述中错误的是
单选题下列关于链式存储结构的叙述中,不正确的是 ______。
单选题设有如下程序: Option Base 1 Private Sub Command1_Click() Dim a(10) As Integer Dim n As Integer n=InputBox("输入数据") If n<10 Then Call GetArray(a,n) End If End Sub Private Sub GetArray(b()As Integer,n As Integer) Dim c(10)As Integer j=0 For i=1 To n b(i)=Clnt(Rnd()*100) Ifb(i)/2=b(i)/2 Then j=j+1 c(j)=b(i) End If Next Print j End Sub 以下叙述中错误的是( )。
单选题VB的数值型数据分为( )两种。
单选题能够将Picture对象Pic1加载当前目录中的face.bmp的语句是( )。 A) Pic1.Picutre=LoadPicture(App.path &"face.bmp”) B) Pic1.LoadPicture(App.path&'Iface.bmp”) C) Picutre1Picutre:LoadPicture(App.path&”face.bmp”) D) Picture1.LoadPicture(App.path&”face.bmp")
单选题文本框Text1的KeyDown事件过程如下:
Private Sub Text1_KeyDown(KeyCode As Integer,Shift As Integer)
…
End Sub
其中参数KeyCode的值表示的是发生此事件时______。
单选题在窗体上画一个命令按钮,然后编写如下事件过程:运行后的输出结果是______。
单选题设a=2,b=3,c=4,d=5.则下面语句的输出是( )。 Print 3>2 * b Or a=c And b<>c Or c>d
单选题设有以下定义语句:Private Type point x As Integer y As Integer End Type Dim a As point下面语句中正确的是
