問題詳情
22)有以下程序main(){int k=5,n=0;do{switch(k){case 1: case 3:n+=1;k--;break;default:n=0;k--;case 2: case 4:n+=2;k--;break;}printf("%d",n);}while(k>0 && n<5);}程序运行后的输出结果是
(A)235
(B)0235
(C)02356
(D)2356
(A)235
(B)0235
(C)02356
(D)2356
參考答案
答案:A
難度:適中0.5
統計:A(0),B(0),C(0),D(0),E(0)
內容推薦
- 9)下列叙述中,正确的是(A)用E-R图能够表示实体集间一对一的联系、一对多的联系和多对多的联系 (B)用E-R图只能表示实体集之间一对一的联系 (C)用E-R图只能表示实体集之间一对多的联
- 18)若执行下面的程序时,从键盘输入5和2,则输出结果是main(){ int a,b,k;scanf("%d,%d ",&a,&B);k=a;if(a<B)k=a
- CIn early autumn I applied for applied for admission to college. I wanted to go nowhere but to Corne
- 47.How can you pay for a ticket when you book by post?(A)By visiting the website of a post offic
- 16)若有说明:int *p,m=5,n;,以下正确的程序段是(A)p=&n;scanf("%d",&p); (B)p=&n;scanf("%d",*
- 17)在执行下述程序时,若从键盘输入6和8,则结果为main(){ int a,b,s;scanf("%d%d",&a,&B);s=aif(a<B) s=b; s*
- 52. In which of the following aspects was Irene Cuire different from her mother?(A)Irene worked
- 第二部分:阅读理解(共两节,满分40分)第一节(共15小题;每小题2分,满分30分)阅读些列四篇短文,从每小题后所给的A、B、C、D四个选项中,选出你最佳选项,并在答题卡上将该选项涂黑。46.
- 15)设变量均已正确定义,若要通过scanf("%d%c%d%c",&a1,&c1,&a2,&c2);语句为变量a1和a2赋数值10和20,为变量c1和c2赋字符X和Y。
- (A)could (B)might (C)should (D)must
內容推薦
- (A)still (B)already (C)always (D)indeed
- 10)下列有关数据库的描述,正确的是(A)数据处理是将信息转化为数据的过程 (B)数据的物理独立性是指当数据的逻辑结构改变时,数据的存储结构不变(C)关系中的每一列称为元组,一个元组就是一个
- (A)remain (B)last (C)supply (D)share
- 48.What benefit can group bookers enjoy according to the text?(A)Delayed payment for tickets. (B
- 25)有以下程序main(){ int x=0,y=0,i;for (i=1;;++i){ if (i%2==0) {x++;continue;}if (i%5==0) {y++;break
- (A)except (B)instead of (C)apart from (D)along with
- (A)turned back (B)set out (C)showed off (D)speeded
- 23)有如下程序main(){ int n=9;while(n>6){n--; printf("%d",n);} }该程序的输出结果是(A)987 (B)876 (
- 26)有以下程序main(){int a[4][4]={{l,4,3,2},{8,6,5,7},{3,7,2,5},{4,8,6,1}},i,j,k,t;for(i=0;ia[k][i]){
- (A)loading (B)treasuring (C)carrying (D)earning
- 12)以下叙述中错误的是(A)计算机不能直接执行用C语言编写的源程序 (B)C程序经C编译程序编译后,生成后缀为.obj的文件是一个二进制文件(C)后缀为.obj的文件,经连接程序生成后缀为
- (A)village (B)land (C)field (D)road
- BMost people know that Marie Curie was the first woman to win the Nobel Prize, and the first person
- Why did the mother renew her membership in the league?(A)To help with her husband’s business
- 19)在C语言中,函数返回值的类型最终取决于(A)函数定义时在函数首部所说明的函数类型 (B)return语句中表达式值的类型 (C)调用函数时主调函数所传递的实参类型 (D)函数定义时形参
- (A)whether (B)how (C)where (D)when
- 50.Where did Irene Curie meet her husband Frederio joliot?(A)At the Curie Institute.(B)At the Cn
- According to the text,what was the author determined to do in that autumn?(A).To get a well-p
- (A)food (B)jewels (C)money (D)seeds
- 膽汁中的何種成分具有乳化脂肪的作用(A)膽固醇(B)膽鹽(C)膽紅素(D)膽黃素
- 24)有以下程序#includemain(){ int c;while((c=getchar())!=′n){ switch(c-′2′){ case 0:case 1:putchar(c+
- 27)有以下程序int f(int n){ if(n==1)return 1;else return f(n-1)+1;}main(){ int i,j=0;for(i=1;i<3;i
- 20)已知大写字母A的ASCII码是65,小写字母a的ASCII码是97。以下不能将变量c中的大写字母转换为对应小写字母的语句是(A)c=(c-′A′)%26+′a′ (B)c=c+32 (
- 51.When was the second child of Irene Curie and Frederic Joliot born? (A)In 19(B)In 19(C
- DEver since they were first put on the market in the early 1990s, gentically mondified (GM, 转基因) foo