Which of the following is NOT the purpose of America's central bank?
A.Controlling the flow of money in the economy.
B.Overseeing the activities of banks.
C.Producing and distributing bank notes and coins.
D.Contributing to the maintenance of a stable financial system.
第1题
下列程序的输出结果是______。main(){ char *s="121"; int k=0,a=0,b=0; do { k++; if(k%2==0) {a=a+s[k]-'0';continue;} b=b+s[k]-'0';a=a+s[k]-'0'; }while (s[k+1]); printf("k=%d a=%d b=%d\n",k,a,b);}
A.k=3 a=2 b=3
B.k=3 a=3 b=2
C.k=2 a=3 b=2
D.k=2 a=2 b=3
第2题
下列程序的输出结果是______。#include <stdio.h>main(){ union { int k; char i[2]; } *S,a; s=&a; s->i[0]=0x39; s->i[1]=0x38; printf("%x\n",s->k);}
A.3839
B.3938
C.380039
D.390038
第3题
下列程序的输出结果是_______。 #include<stdio.h> main() { union { int k; char i[2]; }*s,a; s=&a; s->i[0]=0x39;s->i[1]=0x38; printf("%x\n",s->k); }
A.3839
B.3938
C.380039
D.390038
第4题
以下程序运行后的输出结果是 ______。 #include <stdio.h> struct NODE { int k; char s[20]; }; int main() { struct NODE m[3]; int i; for(i=0;i<3;i++) m[i].k="i+1;" for(i="0;i<3;i++)" printf("%d ",m[i].k); return 0; }>
第5题
下列程序的输出结果是______。 main() { char *s="12134211"; int v[4]={0,0,0,0},k,i; for(k=0;s[k];k++) { switch(s[k]) { case '1':i=0; case '2':i=1; case '3':i=2; case '4':i=3; } vii]++; } for(k=O;k<4;k++) printf("%d ",v[k]); }
A.4211
B.0008
C.4678
D.8888
第6题
以下程序的输出结果是#include <stdio.h>main(){ int k=4,s=0; do{ if((k%3)==0) continue; s+=k;k++; }while(k>10); printf("s=%d\n",s);}
第7题
以下程序的输出结果是______。 main() { char*s="121"; int k=0,a=0,b=0; do {k++; if(k%2==0){a=a+s[k]-'\0';continue;} b=b+s[k]-'\0';a=a+s[k]-'\0'; }while(s[k+1]); printf("k=%d a=%d b=%d\n",k,a,b); }
A.k=3 a=98 b=49
B.k=3 a=99 b=50
C.k=2 a=99 b=50
D.k=2 a=98 b=49
第8题
下列程序运行后的输出结果是______。
#include<stdio.h>
main()
{ char ch[7]="56bcl2";
int i,s=0;
for(i=0;ch[i]>='0'&&ch[i]<='9';i++)
s=10*s+ch[i]-'0';
printf("s=%d\n",s);
}
第9题
以下程序的输出结果是()。
main
{ char*s="12134211";
int v[4]=(0,0,0,0),k,i;
for(k=0;s[k];k++)
{ switch(s[k])
{ case'1':i=0;
case'2':i=1;
case'3':i=2;
case'4':i=3;}
}
v[i]++:
}
for(k=0;k<4;k++)printf("%d",v[k]);
A.4 2 1 1
B.0 0 0 8
C.4 6 7 8
D.8 8 8 8
第10题
以下程序的输出结果是()。 main { char*s="12134211"; int v[4]=(0,0,0,0),k,i; for(k=0;s[k];k++) { switch(s[k]) { case1:i=0; case2:i=1; case3:i=2; case4:i=3;} } v[i]++: } for(k=0;k<4;k++)printf("%d",v[k]);
A.4 2 1 1
B.0 0 0 8
C.4 6 7 8
D.8 8 8 8
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!