单选题在Visual Basic中传递参数的方法有 ______方式。
单选题某二叉树有5个度为2的结点,则该二叉树中的叶子结点数是( )。
单选题窗体上有一个Text1文本框,并编写了下面事件过程: Private Sub Text1_KeyPress(KeyAscii As Integer) KeyAscii=KeyAscii+3 End Sub 程序运行时,在文本框中输入字符“A”,则在文本框中实际显示的是
单选题假定在图片框Picturel中装入了一个图片,在程序运行中,为了清除该图片(注意,清除图片,而不是删除图片框),应采用的正确方法是
单选题在窗体上画两个标签和一个命令按钮,其名称分别为Label1、Label2和command1,然后编写如下程序:Private Sub func(L As Label) L.Caption=”1234”End SubPrivate Sub Form Load() Label1.Caption=”ABCDE” Label2.Caption=10End SubPrivate Sub Commandl_Click() a=Val(Label2.Caption) Call func(Labell) Label2.Caption=aEnd Sub 程序运行后,单击命令按钮,则在两个标签中显示的内容分别为
单选题单击命令按钮时,下列程序的执行结果是 Private Sub Command1_Click( ) Dim a As Integer,b As Integer,c As Integer a=3 b=4 C=5 Print SecProc(c,b,a) End Sub Function Fir Proc(x As Integer,y As Integer,z As Integer) Fir Proc=2*x+y+3*z End Function Function SecProc(x As Integer,y As Integer,z As Integer) SecProc=FirProc(z,x,y)+x End Function
单选题下列语句中正确的是
A. If A≠B Then Print"A不等于B"
B. If A<>B Then Printt"A不等于B"
C. If A<>B Then Print"A不等于B"
D. If A≠B Print"A不等于B"
单选题有如下程序: Private Sub Form_Click() E=1:F=1 For i=1 To 3 E=E+F:F=F+E Next Print E;F End Sub 该程序的输出结果是
单选题在窗体上画一个按钮,然后编写如下的事件代码。在按钮上单击,输出为( )。 Private Sub func(a As Integer) Static m As Integer m=m+a Print m; End Sub, Private Sub Command1_Click() Dim k As Integer k=4 Call func(k) Call func(k) End Sub
单选题窗体上有两个单选按钮和两个复选框,它们的名称和它们的Caption属性相同。要使这些控件显示成如图20-7所示的状态,可在Form_Load事件中执行()。
单选题在文本框中,当用户键入一个字符,能同时引发的事件是 A) KeyPress和Click B) KeyPress和LostFocus C) KeyPress和Change D) Change和LostFocous
单选题以下叙述中错误的是
单选题有下列二叉树,对此二叉树前序遍历的结果为{{U}} {{/U}}。
A. ACFXDBEYZ
B. ABEFXYZCD
C. ABCDEFXYZ
D. ABDYECFXZ
单选题假定有下面的程序段: For i=1 To 3 For j=1 To
i For k=j To 3 Print
"i=";i,"j=";j,"k=";k Next k Next j
Next i 这是一个三重循环程序,在这个程序中,外层、中层和内层循环的循环次数是______。
A. 3、6和14
B. 3、8和16
C. 3、4和12
D. 3、9和18
单选题下面程序运行时,若输入“Visual Basic Programming”,则在窗体上输出的是______。
Private Sub Commandl_Click() Dim count (25) As
Integer,ch As String ch-UCase(InputBox(“请输入字母字符串”))
For k=1 To Len(ch) n=Asc (Mid
(ch,k,1))-Asc("A") If n>=0 Then count
(n)=count (n)+1 End If Next k
m=count (0) For k=1 To 25 If m<count (k)
Then m=count (k) End If Next
k Print m End Sub
A.0
B.1
C.2
D.3
单选题对象名.Cls方法对{{U}} {{/U}}控件有效。
A. 窗体、图像框
B. 窗体、图片框
C. 屏幕、窗体
D. 图像框、图片框
单选题为了在Form_Load事件过程中用Print方法在窗体上输出指定的内容,首先应执行的操作是
单选题窗体上有Text1、Text2两个文本框及一个命令按钮Command1,编写下列程序: Dim y As Integer Private Sub Command1_Click() Dim x As Integer x=2 Text1.Text=Fun2(Fun1(x),y) Text2.Text=Fun1(x) End Sub Private Function Fun1(x As Integer) As Integer x=x+y:y=x+y Fun1=x+y End Function Private Function Fun2(x As Integer,y As Integer) As Integer Fun2=2*x+y End Function 当单击1次和单击2次命令按钮后,文本框Text1和Text2内的值分别是 A) 2 4 2 4 B) 2 4 4 8 C) 10 10 58 58 D) 4 4 8 8
单选题假定有如下的Sub过程:Sub Sub1 (x As Single, y As Single)
t=x x = t/y y = t Mod yEnd Sub
在窗体上画一个命令按钮,然后编写如下事件过程:Private Sub Command1_ Click()
Dim a As Single Dim b As Single a =
5 b = 4 Sub1 a, b Print a; b
End Sub 程序运行后,单击命令按钮,输出结果为______。
A. 5 4
B. 1 1
C. 1.2 5.4
D. 1.25 1
单选题下列关于类、对象、属性和方法的叙述中,错误的是( )。