设有如下程序: Private Sub Form. Click( ) Dim s As Long,f As Long Dim n As Integer,i As Integer f=1 n=4 For i=1 To n f=f*i s=s+f Next i Print s End Sub 程序运行后,单击窗体,输出结果是( )。A.32B.33C.34D.35

设有如下程序: Private Sub Form. Click( ) Dim s As Long,f As Long Dim n As Integer,i As Integer f=1 n=4 For i=1 To n f=f*i s=s+f Next i Print s End Sub 程序运行后,单击窗体,输出结果是( )。

A.32

B.33

C.34

D.35


相关考题:

不同类型的数据占用存储空间的长度是不同的。下列选项中,符合占用存储空间从小到大顺序排列的是() A.Byte,Integer,Long,DecimalB.Byte,Integer,Double,BooleanC.Boolean,Byte,Integer,DoubleD.Byte,Decimal,Integer,Long

设有如下程序:Private Sub Form_Click()Dim n As Integer, s As Integern = 8s = 0Dos = s + nn = n - 1Loop While n 0Print sEnd Sub以上程序的功能是______。程序运行后,单击窗体,输出结果为______。

设有如下程序: fun(float*p1,int n,float*p2,int m,float*s) {int i; *s=0.0; for(i=0;i<n;i++)*s+=*p1++; for(i=0;i<m;i++)*s+=*p2++; } main() { float a[]={1.1,2.2},b[]={1.0,2.0,3.0),*s=a; fun(a,2,b,3,s); printf("%f\n",*s); } 上面程序的输出结果是______。A.8.2B.9.3C.3.3D.1.1

若程序中已包含头文件stdio.h,以下选项中,正确运用指针变量的程序段是A.int *i=NULL;B.float *f=NULL;scanf("%d",i); *f=10.5;C.char t='m', *c=t;D.long *L;

以下选项中,正确运用指针变量的程序段是( )。A.int*i=NULL;B.float*f=NULL; scanf("%d",i); *f=10.5;C.char t='m',*C=t;D.long*L; *C=t; L='0';

下面程序执行后的输出结果是(小数点后只写一位)______。 main ( ) { double d; float f; long 1; int i; i=f=1=d=20/3; printf("%d %ld %f %f \n", i,l,f,d); }A.6 6 6.0 6.0B.6 6 6.7 6.7C.6 6 6.0 6.7D.6 6 6.7 6.0

在标准模块中用:Dim或Private关键字定义的变量是______变量,它们只能在程序的模块中使用。

设有定义int i=123;long j=456;,下列赋值不正确的是A.j=i;B.j=(long)i;C.i=(int)j;D.i=j;

都是VB.NET中的数据类型的选项是()AShort、Integer、Long、Float、DoubleBShort、Int、Long、Single、DoubleCInteger、Long、Single、Double、DecimalDBoolen、Byte、Bit、Decimal、Date