网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

有如下一个Sub过程: Sub mlt(ParamArray numbers()) n=1 For Each x In numbers n=n*x Next x Print n End Sub 在一个事件过程中如下调用该Sub过程: Private Sub Command1_Click() Dim a As Integer Dim b As Integer Dim c As Integer Dim d As Integer a=1 b=2 c=3 d=4 mlt a,b,c,d End Sub 该程序的运行结果为( )。

A.12

B.24

C.36

D.48


参考答案

更多 “ 有如下一个Sub过程: Sub mlt(ParamArray numbers()) n=1 For Each x In numbers n=n*x Next x Print n End Sub 在一个事件过程中如下调用该Sub过程: Private Sub Command1_Click() Dim a As Integer Dim b As Integer Dim c As Integer Dim d As Integer a=1 b=2 c=3 d=4 mlt a,b,c,d End Sub 该程序的运行结果为( )。A.12B.24C.36D.48 ” 相关考题
考题 有如下事件过程:Private Sub Command1_Click()Dim m As Integer, n As Integerm=2: n=1Print "m="; m; "n="; nCall TOD(m, n)Print "m="; m; "n="; nEnd SubSub TOD(x, y)x=x ^ 2y=y ^ 3End Sub程序运行后,输出的结果为( )。A.m=2,n=1m=1,n=2B.m=2,n=1m=4,n=1C.m=1,n=2m=1,n=4D.m=1,n=2m=2,n=4

考题 为使下列代码正常运行,应该在下划线处填入的选项是int〔〕numbers=new int[n];for(Int i=0;i numbers.____;i++)numbers[i]=i+1;A.sizeB.lengthC.dimensionD.measurement

考题 有如下事件过程: Private Sub Command1_Click( ) Dim m AS Integer,n AS Integer m=2:n=1 Print "m=";m;"n=";n Call TOD(m,n) Print "m=";m;"n=";n End Sub Sub TOD(x,y) x=x^2 y=y^3 End Sub 程序运行后,输出的结果为A.m=2,n=1 m=1,n=2B.m=2,n=1 m=4,n=1C.m=1,n=2 m=1,n=4D.m=1,n=2 m=2,n=4

考题 为使下列代码正常运行,应该在下画线处填入的选 项是( )。 int[]numbers=new int[n]; for(int i=0;inumbers. ;i++) numbers[i]=i+1:A.sizeB.lengthC.dimensionD.measurement

考题 假定有如下事件过程: Privte Sub Form_Click() Dim x As Integer,n As Integer x=1 n=0 Do While x<28 x=x*3 n=n+1 Loop Print x,n End Sub 程序运行后,单击窗体,输出结果是A.81 4B.56 3C.28 1D.243 5

考题 假定有如下事件过程: Phvate Sub Form_Click() DimXASInteger,nASInteger x=1 n=0 Do While x<28 x=x*3 n=n+1 Loop Ptint x,n End Sub 程序运行后,单击窗体,输出结果为______。A. 81 4B.56 3C.28 1D.243 5

考题 下面程序的运行结果是____ int x=30; int[] numbers=new int[x]; x=60; System.out.println(numbers.length);A.60B.20C.30D.50

考题 1、 求解下列递归关系 a) x(n)=x(n-1)+5 其中n>1,x(1)=0 b) x(n)=3x(n-1) 其中n>1,x(1)=4 c) x(n)=x(n-1)+n 其中n>0,x(0)=0 d) x(n)=x(n/2)+n 其中n>1,x(1)=1(对于n=2k的情况来解)

考题 5、为使下列代码正常运行,应该在下画线处填入的选项是()。 int[]numbers =new int[n]; for (int i =0;i <numbers________ .;i ++) numbers[i]=i +1;A.sizeB.lengthC.dimensionD.measure ment

考题 【单选题】下面程序的运行结果是? main() { int x=30; int[] numbers=new int[x]; x=60; System.out.println(numbers.length); }A.60B.20C.30D.50