正在加载图片...
事件过程是指 4.在B中,对没有赋值的变量WB会自动将数值型数据赋为 变长字符串初始化为 定长字符串初始化为 5.0 ption Explicit语句的作用是 6.数组a(10)的元素个数为个,数组a(3,1to3)的元素个数为个。 7.VB应用程序由 等3个模块构成。 8.调用通用过程和函数时,参数的传递方式有 和 两种,其中默认的方式是 9.0pen“c:\test.txt” For Output As#1 Write #1 This is a test 这两条语句的作用是 三、读程序并写出运行结果(10分) 1. Private Sub Commandl Click( For n=l To 200 If n Mod 37=0 Then a=a&str(n)&”” End if TextI Text=a End sub 运行结果: 2. Private Sub Command1 click() Dim a As Integer, b As Integer A=10:b=20 tryout a, b print“a=”;a, End sub Sub tryout(x As Integer, ByVal y As Integer) X=x+100 print“x=”;x,"y=”;y End sub 运行结果事件过程是指_______________________________________________。 4.在 VB 中,对没有赋值的变量 VB 会自动将数值型数据赋为 , 变长字符串初始化为 ,定长字符串初始化为 。 5.Option Explicit 语句的作用是____________________________。 6.数组 a(10)的元素个数为 个,数组 a(3,1 to 3)的元素个数为 个。 7.VB 应用程序由_________、__________、___________等 3 个模块构成。 8.调用通用过程和函数时,参数的传递方式有__________和___________ 两种,其中默认的方式是_________。 9.Open “c:\test.txt”For Output As #1 Write #1,”This is a test” 这两条语句的作用是____________________________________________。 三、读程序并写出运行结果(10 分) 1. Private Sub Command1_Click( ) a=”” For n=1 To 200 If n Mod 37=0 Then a=a &Str(n)&” ” End If Next Text1.Text=a End Sub 运行结果: 2.Private Sub Command1_click( ) Dim a As Integer,b As Integer A=10:b=20 tryout a,b print “a=”;a,”b=”;b End Sub Sub tryout(x As Integer, ByVal y As Integer) x=x+100 y=y*6 print “x=”;x,”y=”;y End Sub 运行结果:
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有