- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
2004A试卷E
浙江大学2004-2005学年冬季学期
《C Programming》课程期末考试试卷
开课学院:计算机学院, 考试形式:闭卷
考试时间:2005年1月22日, 所需时间:120 分钟
考生姓名: 学号: 专业:
(注意:答题内容必须写在答题卷上,写在本试题卷上无效)
Section 1: Single Choice(2 mark for each item, total 20 marks)
The precedence of operator _____ is the lowest one.
A.? : B.== C.+= D. _____ is correct if it is used as a character constant.
A.’’ B. C. D.char c1=92,c2=92; the value of expression _____ is 0.
A. c1^c2 B.c1c2 C.~c2 D.c1|c2_____.
A. B. C.? D.sizeof(\num=%d\t) is ______.
A.7 B.8 C.9 D.10 In the following assignments or initialization, ______ is wrong.
A.char s[ ]=; B.char s[10]; s=; C.char *p=; D.char *p; p=; The following code fragment prints out ______.
#define MA(x, y) (x)*(y)
int i = 2;
i = 3/MA(i, i+2)+5;
printf(“%d\n”, i);
A.B.C.D. static struct {
int x, y[3];
} a[3] = {{1,2,3,4},{5,6,7,8},{9,10,11,12}}, *p;
p = a+1;
The value of expression *((int *)(p+1)+2) is ______.
A. B. C. D. After running the following code fragment, the value of s is ______.
int i=5, s=0;
do if (i%2) continue; else s+=i; while (--i);
A. B. C. D. According to the declaration: int (*p)[10], p is a(n) ______.
A. B. C. D.
Section 2: Fill in the blanks(2 mark for each item, total 30 marks)
The value of expression 1+4/5+157+4%5+(8,10) is ______.
The value of expression !!10 is _____.
The value of expression 321 is _____.
The value of expression ~(-11) is ______.
The statement for (i=1; i=9; i++) printf(“%3d”, ______);prints out the following numbers:
1 4 7 10 13 16 19 22 25.
According to the declaration: int a[10], *p=a[1]+2; the last element of array a is p[__].
Write the declaration_____ with typedef, which makes PA a synonym for a character pointer array, which contains 100 elements.
The following code fragment prints out _____.
static int a[3][4]={{1,2,3},{4,5,6}};
printf(“%d”,a[0][5]);
The following code fragment prints out _____.
char a[]={“678”,”45”},**p=a+1;
prin
您可能关注的文档
- 10.EU post-2010 vision and targets-John MacKinnon EN.ppt
- 11-真菌08.ppt
- 12 第十二讲 八年级(下) Units 3~4.ppt
- 12_detaillectout.doc
- 12单元听力答案.doc
- 12自由组合定律第三课时.ppt
- 13-14-2B 班口试题目及答案.doc
- 2 18 sentence fragment.ppt
- 2 Basic Facts about USA.doc
- 2.1 植物细胞工程 课件(人教版选修3).ppt
- 2025年甘肃自然能源研究所博士研究生及急需紧缺专业招聘参考题库附答案解析.docx
- 2024年资阳辅警协警招聘考试真题附答案.docx
- 张家口市张北县社区工作者考试题库(各地真题).docx
- 2025年日喀则辅警协警招聘考试真题必考题.docx
- 天津市静海区社区工作者考试题库附参考答案(完整版).docx
- 2025年抚顺辅警招聘考试真题附答案.docx
- 2025年武隆县辅警协警招聘考试真题必考题.docx
- 2026河南鹤壁海昌智能科技股份有限公司招聘95人笔试备考试题(浓缩300题)附答案.docx
- 2024年许昌辅警招聘考试题库必考题.docx
- CAAC无人机机长考试地面站题库(全国通用).docx
原创力文档


文档评论(0)