网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
下面程序段,运行后的结果是
Private Sub Command1_Click
Dim b%(1 To 4), i%, t#
For i=1 To 4
b(i) =i
Next
t=Tof(b() )
Print "t="; t,
End Sub
Function Tof(a() As Integer)
Dim t#, i%
t=1
For i=2 To UBound(a)
t=t a(i)
Next
Tof=t
End Function
A.t=18
B.t=24
C.t=30
D.t=32
参考答案
更多 “ 下面程序段,运行后的结果是Private Sub Command1_ClickDim b%(1 To 4), i%, t#For i=1 To 4b(i) =iNextt=Tof(b() )Print "t="; t,End SubFunction Tof(a() As Integer)Dim t#, i%t=1For i=2 To UBound(a)t=t a(i)NextTof=tEnd FunctionA.t=18B.t=24C.t=30D.t=32 ” 相关考题
考题
下面程序段,运行后的结果是 Private Sub Commandl_Click( ) Dim b%(1 To 4),i%,t# For i=1 To 4 b(i)=i Next i t=Tof(b( ) ) Print"t=";t, End Sub Function Tof(a() As Integer) Dim t#,i% t=1 For i=2 To UBound(A)t=t * a(i) Next i Tof=t End FunctionA.t=18B.t=24C.t=30D.t=32
考题
下面程序运行后的输出结果是( )。 include main() {int a[]={1,2,3,4,5,6},*k[3],i=1; w
下面程序运行后的输出结果是( )。include<stdio.h>main(){int a[]={1,2,3,4,5,6},*k[3],i=1;while(i<4){ k[i-1]=a[2*i-1];printf("%d",*k[i-1]);i++;}}
考题
下面程序运行后的输出结果是()。includemain(){int a[5]={1,0,4,2,0},b[5]={1,2,3,4,5}
下面程序运行后的输出结果是( )。 #include<stdio.h> main() {int a[5]={1,0,4,2,0},b[5]={1,2,3,4,5},i,s=0; for(i=0;i<5;i++)s=s+b[a[i]]; printf("%d\n”,s); }A.12B.15C.11D.8
考题
【单选题】程序段: int i,a[3][3]={9,8,7,6,5,4,3,2,1}; for(i=0;i<3;i+=1) printf("%4d",a[1][i]); 运行此程序段,输出结果是:()A.6 5 4B.9 5 1C.9 6 3D.9 8 7
热门标签
最新试卷