设有如下程序:
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
第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;
第2题:
以下选项中,正确运用指针变量的程序段是( )。
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';
第3题:
设有定义inti=123;longj=456;下面赋值不正确的语句是()
A.j=i;
B.j=(long)i;
C.i=(int)j;
D.i=j;
第4题:
【单选题】设有定义 int i=123; long j=456; 下面赋值不正确的语句是()。
A.j=i;
B.j=(long)i;
C.i=(int)j;
D.i=j;
第5题:
A.byte, short, int, long, float, double
B.boolean, byte, short, char, int, long, float, double
C.byte, short, char, int, long, float, double
D.byte, short, char
E.int, long, float, double
第6题:
若程序中已包含头文件stdio.h,以下选项中,正确运用指针变量的程序段是 ______。
A.int*i=NULL; scanf("%d",i);
B.float * f=NULL *f=19.5;
C.char t='m',*c=&t; *c=&t;
D.long *L; L='\0';
第7题:
设有定义int i=123;long j=456;,下列赋值不正确的是
A.j=i;
B.j=(long)i;
C.i=(int)j;
D.i=j;
第8题:
A.1
B.2
C.3
D.4
第9题:
都是VB.NET中的数据类型的选项是()
AShort、Integer、Long、Float、Double
BShort、Int、Long、Single、Double
CInteger、Long、Single、Double、Decimal
DBoolen、Byte、Bit、Decimal、Date
第10题:
设有定义 int i=123; long j=456; 下面赋值不正确的语句是
A.j=i;
B.j=(long)i;
C.i=(int)j;
D.i=j;