1、)&)D5. 若有定义“int x=11;”,则表达式“(x+*1/3) ”的值是A. 12B. 11C. 4D. 326. 若有定义“int a=1,b=2,c=3,d=4;”,则表达式“ab?a:cd?c:d”的值是A. 1B. 2C. 3D. 4A7. 若有定义“int a=1, b=0, c=0, x=35;”,则执行下列程序段后,变量x的值是if(!a) x-; else if(b); if(c) x=3; else x=4;A. 3B. 4C. 34D. 35第5章 选择结构的程序设计8. 若有定义“int x=1,y=1,m=1,n=1;”,则执行下列语句后,变量x和y的值分别是
2、 switch (m) case 0: x=x*2; case 1: switch (n) case 2: y=y*2; break; case 3: x+; y+; x*=2; y*=2; default:y+;A. x=2,y=1B. x=2,y=2C. x=6,y=6D. x=7,y=79. 若有定义“int i,j;”,执行语句“for (i=0,j=1; i=j+1; i+=2,j-) printf (%d,i);”时的循环次数是C. 1D. 0第6章 循环结构的程序设计10. 若有定义“int n=4;”,则执行语句“while(n-) printf(,n-);”后的输出结果是A.
3、 20B. 31C. 210D. 32111. 若有定义“int x=3;”,则执行下列语句后的输出结果是 do printf(%d ,x+=1); while(-x);A. 4B. 4 4C. 4 4 4D. 死循环12. 若有定义“char a=xyz,b=x,y;”,则下列叙述中正确的是A. 数组a的长度大于数组b的长度B. 数组a的长度小于数组b的长度C. 数组a和数组b的长度相同D. 数组a和数组b等价第7章 数组13. 若有定义“int aa44=1,2,3,4,5,6,7,8,3,9,10,2,4,2,9,6, i,s=0;”,则执行下列语句后,变量s的值是 for(i=0;in
4、umB. (p+)-ageC. (*+p).numD. (*p).num20. 下列选项中,可以作为函数fopen中第一个参数的是A. usertext.txtB. c:usertext.txtC. usertext.txtD. c:usertext.txt第11章 文件21. 若y是int型变量,则判断y为偶数的关系表达式为_。(y%2)=0或!(y%2)或(y%2)!=1填空题22. 下列语句序列执行后的输出结果是_。int x=10,y=10;%d,%dn,-x, y-);9,1023. 若有语句“scanf(%d %c %f,&a,&b,&c);”,假设输入序列为2223a123o.1
5、2,则变量a和b的值分别为(1)和(2)。(1) 2223 (2) a第4章 顺序结构的程序设计24. 下列语句序列执行后的输出结果是_。int m=5;if(m+5) printf(%dn,m);else printf(,-m);525. 下列语句序列执行后,变量x和a的值分别是 (1) 和 (2)。int x=3,y=6,a=0;while(x+!=(y-=1) a+=1; if(yx) break;(1) 5 (2) 126. 下列语句序列执行后的输出结果是_。 for(int i=1;6; i+) if(!(i%2) #); continue;*#*#*27. 若有定义“char s1
6、15=Hello, s210=Jack;”,则语句“printf(, strlen(strcpy(s1,s2);”执行后的输出结果为_。428. 若有定义“int a =1,2,3,4,5,6,7,8,9,0,*p; ”,则执行语句序列“p=a;, *(p+9); ”后的输出结果是 。29. 函数调用语句“func(exp1,exp2),(exp3,exp4,exp5);”中含有_个实参。30. 若有定义: struct int x; int y; d2=1,3, 2,7;则执行语句“printf(, d0.y*d1.y/d0.x);”的结果是。2131. 下列程序的功能是调用函数fun计算m
7、=1+2+3+4+9+10,并输出结果。请将划线处的语句补充完整。#include int fun( int n) int m=0,i;for(i=1;=n; (1) )m=m+i;return (2) ;int main() printf(m=%dn, (3) );return 0;(1) i+ (2) m (3) fun(10)32. C语言是一种结构化程序设计语言。判断题33. C语言中不区分英文字符的大小写。34. “+”运算符的优先级比“+”运算符的优先低。35. C语言的逻辑表达式中只允许出现逻辑型数据。36. C语言本身不提供输入输出语句,但可以通过输入输出函数实现数据的输入输出
8、。37. 若有定义“char s=hello”,则数组s中有6个元素。38. 函数返回值类型与return表达式类型不一致时,以return 表达式类型为准。39. 在二维数组a34中,a+1与a1都是第一行的首址。40. 对指向一维数组的指针可进行乘和除等运算。41. C语言中,以“r”方式不能打开并不存在的文件。42. 请写出下列程序的输出结果。char str=ab*AB%cd#CD$int i;for(i=0;stri!0i+) if(A=stri&striZ) putchar(stri);else if(= stri& striy) f(&x,&y);else if(yz) y,&z
9、);else %d,%d,%dn,x,y,z);1,2,3 第一部分 交际英语 1-Have a cup of tea, _ ? 你需要来杯茶吗?-Thanks a lot. 非常感谢。A dont you B havent you C shall me D will you2.- _? 他怎么样?-He is not very well. 他不是很好。A Who is he B What is he C How is he D Who he is 3.Why didnt you come to my birthday party yesterday? 昨天为什么不来参加我的生日晚会? - _
10、.不好意思,我太太出了个交通事故A Excuse me, my friend sent me a flower B Fine, I never go to birthday partiesC Well, I dont like birthday parties D Sorry, but my wife had a car accident4.This box is too heavy for me to carry upstairs.这个盒子对我来说太重了,搬不到楼上去 -_ .让我帮你吧A You may ask for help B Ill give you a handC Please
11、do me a favor D Id come to help5. -Could I ask you a rather personal question? 我可以问您一个私人问题吗?-Of course, _. 当然可以,开始A good idea B thats right C never mind D go aheadKey: DCDBD6.Oh, dear! Ive just broken a window. 噢天啊,我刚刚打破了一扇窗户。 - _.不用担心的。A Great B Dont worry C Thats fine D Not at all7. Sorry. I have
12、taken your sports shoes by mistake.抱歉,我拿错了你的运动鞋。- _.没关系A Thats right B Youre welcome C It doesnt matter D All right8. -Thats a beautiful dress you have on!你穿的这件裙子很漂亮! - _.噢,谢谢,我昨天买的A Oh, thanks. I got it yesterday B Sorry, its too cheap C You can have it D See you later9. -How do I get to the cinema
13、?能告诉我电影院怎么走吗?- _.沿着这条街,然后向左拐A Its very far. B Yes, there is a cinema near here.C Its well known. D Go down this street and turn left.10. -If you like I can mail this letter for you?您会喜欢我写封信给你吗?- _ .那你真是太好了。A Thats very kind of you B You are so kind C Please give me a hand D You are great BCADA11. -D
14、avid injured his leg playing football yesterday.大卫昨天踢球时腿受伤了 -Really? _?真的吗?那怎么发生的啊?A Who did that B Whats wrong with himC How did that happen D Why was he so careless12-Must I be home before seven?我必须在7点之前回来吗?- _ _.不,不需要A No, you neednt B No, you mustnt C Yes, you will D No, you wont13. -Shall I dri
15、ve you to the railway station?要我开车送你去火车站吗?-Oh, dont bother about it. Ill take a taxi.哦。不要麻烦,我打个出租。-Well, _!恩,祝你旅途愉快。-Thank you and good-bye! 谢谢,拜拜。A come on B help C have it checked up D have a nice trip14. -Im terribly sorry that Ive spilled some coffee on the carpet.很抱歉,我溅了些咖啡在地毯上。-_ .没关系A. Sorry
16、B. It doesnt matter C. Thats right D. Dont mention it15. -Hi, is Mary there, please?请问,Mary在吗?- _别挂断,我去叫她A Hold on. Ill get her. B No, she isnt here.C Yes, she lives here. D Yes, what do you want? CADBA16. -Its rather cold in here. Do you mind if I close the window?这里相当冷,你介意我把窗关上吗?- _.不介意,去关上吧。A Yes
17、, please B No, go ahead C Sure, please D I dont like it17-Which sweater do you like better?你喜欢哪件毛衣? - _.我无法决定A Good idea B Yes, its nice C Yes, please D I cant decide18.-How clever your little son is!你的小儿子真聪明!- _.谢谢。A I dont think so B In fact he isnt C Thank you D You are not true 19.-Medam,do all the buses go downtown?女士,请问,是不是所有的公交车都开往市区? - _. 对不起,我也不是本地人A Wow, you got the idea B No, never mindC pretty well, I guess D Sorry, Im new here20.-Could I speak to D
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1