If I ______ in the twenty-second century, I ______ my vacation in a very different way
A.should live…would spend
B.will live ….should spend
C.are living … should have spent
D.will be living…would have spent
A.should live…would spend
B.will live ….should spend
C.are living … should have spent
D.will be living…would have spent
A.Yes,I have
B.No,I haven’t
C.Yes,I do
D.No,I didn’t
有以下程序
main()
{ int t=1,i=5;
for(; i>=0; i--) t*=i;
printf("%d\n",t);
}
执行后输出结果是【 】。
A.afford to
B.afford
C.affirm
D.affirm with
A.while(*t=*s){t++;s++;}
B.for(i=0;t[i]=s[i];i++);
C.do{*t++:*s++;}while(*s);
D.for(i=0,j=0;t[i++]=s[j++];);
I don’t want ()sugar in my Coffee.
A.any
B.some
C.a
D.no
以下程序的输出结果是()。 void fun(int*a,int i,int i) {int t; if(i<i) { t=a[i[;a[i]=a[j];a[j]一t; i++;j--;
fun(a,i,j); } } main { int K[]={2,6,1,8},i; fun(x,0,3); for(i=0;i<1;i++)printf("%2d",x[i]); printf("\n"); }
A.1,2,6,8
B.8,6,2,1
C.8,1,6,2
D.8,6,1,2
下面程序段,运行后的结果是 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 Function
A.t=18
B.t=24
C.t=30
D.t=32
以下程序的输出结果是 #include<iostream.h> void reverse(int a [ ] ,int n) {int i,t; for(i=0;i<n/2;i++) {t=a[i];a[i]=a[n-1-i];a[n-1-i]=t;} } void main() {int b[10]={1,2,3,4,5,6,7,8,9,10}
A.22
B.10
C.34
D.30