ImageVerifierCode 换一换
格式:DOCX , 页数:32 ,大小:34.54KB ,
资源ID:17949328      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/17949328.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(国家开放大学秋季学期电大《C语言程序设计》期末考试及答案参考文档格式.docx)为本站会员(b****4)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

国家开放大学秋季学期电大《C语言程序设计》期末考试及答案参考文档格式.docx

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