阅读程序: Sub p(b() As Integer) For i=1 To 4 b(i)=2*i Next i End 5ub Private Sub Command1_C1ick() Dima(1 To 4)As InteSera(1)=5a(2)=6a(3)=7a(4)=8 caU p(a) For i=1 To 4 Pdnt a(i) Next i End Sub 运行上面的程序,单击
相似题目
-
下列程序输出结果为( )。 Private Sub Command1_Click() a%=10 b%=5 Change a,b Print a,b End Sub Private Sub Change(ByVal a As Integer,b As Integer) Tmp=a a=b b=tmp End Sub
-
有如下函数过程: Function secproc(x As Integer, y As Integer, z As Integer) secproc = 3 * y + z + 2 * x End Function Private Sub Command1_Click() Dim a As Integer, b As Integer, c As Integer a = 2: b = 3: c = 4 Print secproc(c, b, a) End Sub 该程序的运行结果是( )。
-
执行下列程序后,输出的结果是: Function Fun1(ByVal a As Integer, b As Integer) As Integer Dim t As Integer t = a - b b = t + a Fun1 = t + b End Function Private Sub Command1_Click() Dim x As Integer x = 10 Print Fun1(Fun1(x, (Fun1(x, x - 1))), x - 1) End Sub
-
有如下函数过程:Function secproc(x As Integer, y As Integer, z As Integer)secproc = 3 * y + z + 2 * xEnd FunctionPrivate Sub Command1_Click()Dim a As Integer, b As Integer, c As Integera = 2: b = 3: c = 4Print secproc(c, b, a)End Sub该程序的运行结果是( )。
-
下列程序输出结果为( )。Private Sub Command1_Click()a%=10b%=5Change a,bPrint a,bEnd SubPrivate Sub Change(ByVal a As Integer,b As Integer)Tmp=aa=bb=tmpEnd Sub
-
下面程序: Function a(x) Static b As Integer b = b + x ^ 2 Print b End Function Private Sub Command1_Click() Dim c% c = a(2) End Sub 单击两次命令按钮,第二次显示的结果是( )。
-
阅读程序:Function Fun(a As Integer)Static C b=0:b=b+2:c=c+2 F=a*b*cEnd FunctionPrivate S
-
在窗体上画一个命令按钮,然后编写如下程序:Sub S1(ByVal X AS Integer,ByVal y As Integer) Dim
-
在窗体上设计如下两个事件过程: Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)Print Chr(KeyCode) End Sub Private Sub Form_KeyPress(KeyAscii As Integer)Print Chr(KeyAscii) End Sub 在程序运行后,按“a”键(不按住Shift
-
在窗体上画一个名称为Command1的命令按钮,然后编写如下程序: Public Enum S a=4 b=3 End Enum Private Sub Command1 Click() Dim x As Integer x=a If x>=3 Then MsgBox"Pass!" End Sub 运行程序,其结果是()。
-
下列程序的执行结果为Private Sub Command1_Click() Dim p As Integer, q As Integer p=12: q=20 Call Value(p, q) Print p; qEnd SubPrivate Sub Value(ByVal m As Integer, ByVal n As Integer) m=m * 2: n=n -
-
单击命令按钮时,下列程序代码的执行结果为Public Sub Procl(n As Integer,ByVal m As integer)n=
-
有如下程序: Private Sub Command1_Click() Dim k As Integer,m As Integer Dim p As Integer k=4:m=1 p=PC(k,m):Print p; p=PC(k,m):Print p End Sub Private Function PC(a As Integer,b As Integer) Static m As Integ
-
程序执行结果s的值是 【7】 。 Private Sub sub1(Byval p As Integer) p=p*2 End Sub Private Sub Command1_ Click() Dim i As Integer i=3 Call sub 1 (i) if i>4 then i=i mod 2 Print cstr(i) End 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 FirProc (x As Integer,y As Integer,z As Integer) FirProc
-
在窗体上画一个名称为Command1的命令按钮。编写如下程序: Option Base1 Private Sub Command1_Click() Dim a(10) As Integer For i=1 To 10 a(i)=i Next Call swap((11) ) For i=1 To 10 Print a(i); Next End Sub Sub swap(b()As Integer
-
在窗体上画—个命令按钮,其名称为Command1,然后编写如下程序: Function M(x As Integer,y As Integer)M=IIf(x>y,x,y) End FUNction Private Sub Command1 Click()Dim a As Integer,b As Integera=100b=200Print M(a,B) End Sub 程序运行后,单击命令按钮
-
某人编写了下面的程序 Private Sub Command1_Click()Dim a As Integer,b As Integera=InputBox("请输入整数")b=InputBox("请输入整数")pro apro bCall pro(a+b) End Sub Private Sub pro(n As Integer)While(n>0) Print n Mod 10; n=n10W
-
在窗体上画一个名称为Command1的命令按钮和一个名称为Text1的文本框,然后编写如下程序:Private Sub Command1_Click()Dim x,y,z As Integerx=5y=7z=0Texttext=“”Call P1(x,y,z)TextText=Str(z)End SubSub P1(a As Integer,b As Int
-
在窗体上有一个名称为Command1的命令按钮,并有如下事件过程和函数过程: Private Sub Command1_Click() Dim p as Integer p=m(1)+m(2)+m(3) Print p End Sub Private Function m(n As Integer) As Integer Static s As Integer For k=1 To n s=s+1
-
在窗体上面画一个命令按钮,然后编写如下程序: Function M(x As Integer,y As Integer)As IntegerM=IIf(x>y,x,y) End Function Private Sub Command1_Click()Dim a As Integer,b As Integera=1b=2Print M(a,B) End Sub 程序运行后,单击命令按钮,输出结果为
-
在窗体上画一个命令按钮,其名称为Command1,然后编写如下程序: Function M(x As Integer,y As Integer)As Integer M=IIf(x>y,x,y) End Function Private Sub Command1_Click() Dim a As Integer,b As Integer a=100 b=200 Print M(a,b) End
-
在窗体上画一个命令按钮,其名称为Command1,然后编写如下程序; Function M(x As Integer,y As Integer)M=IIf(x>y,x,y) End Function Private Sub Commandl_Click()Dim a As Integer,b As Integera=100b=200PrintM(a,B) End Sub 程序运行后,单击命令按钮,
-
在窗体上画—个名为Command1的命令按钮,然后编写如下程序: Private Sub Command1_Click()Dim i As IntegerSum=0n=InputBox("Enter a number")n=Val(n)For i=1 To n Sum= 【12】 Next iPrint Sum End Sub Function fun(t As Integer)As Long p
推荐题目
- 有的人对挫折感到无能为力,放弃努力破罐子破摔,这是一种挫折的什么类型的行为反应?()
- 当归养荣汤功效与作用
- 有关头皮血肿,下列错误的是()
- 下面是某求助者的WAIS-RC的测验结果: https://assets.asklib.com/images/image2/2017060111233897733.png 该求助者FIQ的智力等级为()。
- 房屋地上层数
- 职务描述的主要内容有()。
- 某饮料生产企业为增值税一般纳税人,年末将本企业生产的一批饮料发放给职工作为福利。该饮料市场售价为12万元(不含增值税),增值税适用税率为17%,实际成本为10万元。假定不考虑其他因素,该企业应确认的应付职工薪酬为()万元。
- 下列头颈部肿瘤中,预后较好的有()。
- 邓小平的社会主义本质理论重大理论意义在于( )。
- 用CAN通讯方式时,由LKJ2000装置的插座X36与TAX3箱的TX14T相连即可通讯,用RS485通讯方式时,由