- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
2007A试卷E
浙江大学2006-2007学年夏季学期
《程序设计基础及实验》课程期末考试试卷(A)
开课学院:计算机学院, 考试形式:闭卷
考试时间:2007年7月7日, 所需时间:120 分钟,任课教师
考生姓名: 学号: 专业:
(注意:答题内容必须写在答题卷上,写在本试题卷上无效)
Section 1: Single Choice(2 marks for each item, total 20 marks)
According to the declaration: char ch; the assignment expression ______is correct.
A.ch=’\412’ B.ch=255 C.ch=’\08’ D.ch=’\’ According to the declarations: float x=16/5/2.0, y=16/5.0/2; the values of x and y is ______ respectively.
A.1.5 1.6 B.1.6 1.6 C.1.5 1.5 D.1.6 1.5 According to the declarations: int a [10], *p=a; the expression *p++ is equivalent to _____.
A.a[0]++ B.a[1]++ C.*(p++) D.(*p)++ In the following initializations/assignments, _____ is correct.
A.char s[10]; s=”hello!”; B.int x[2][]={1,2,4,6}; C.int x[][3]={1,2,3,4,5,6}; D.char s[10]; s[]=”hello!”; In the following statements, _____ will print out “%d” .
A.printf(“%d”); B.printf(“%%d”); C.printf(“\%d”); D.printf(“%%%d”) The following code fragment prints out _____.
int x=1, y=012;
printf(“%d”,y*x++);
A.12 B.10 C.20 D.24 The following code fragment prints out _____.
int a=1,b=2,c=2,t;
while(abc) { t=a; a=b; b=t; c--; }
printf(“%d,%d,%d”,a,b,c);
A.1,2,0 B.2,1,0 C.1,2,1 D.2,1,1 In the following figure, the shading regions of the axis can be described as expression _______.
//// ////
//// ////
X
a b c
A.(x=a)(x=b)(x=c) B.(x=a)||(b=x=c) C.(x=a)||(x=b)(x=c) D.(x=a)(b=x=c) The following code fragment will print out _______.
int x = -3, y = 2;
if(xy);
x = -x;
if(xy)
y = -y;
printf(x=%d,y=%d\n, x, y);
A.x=3,y=-2 B.x=3,y=2 C.x=-3,y=2 D.x=-3,y=-2 According to the declaration: int x[5]; _______of the following operations can increase the value of the second element of x by 1 (Assume that x[0] is counted as 1st element).
A.x[2]++; B.int p=x[1];p++; C.x++; (*x)++; D.int p=x+1; (*p)++;
Section 2: Fill in the blanks(2 marks for each item, total 30 marks)
T
您可能关注的文档
- 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
- 中国沿海地区城市韧性水平评价及提升策略研究.pdf
- 政府数字化转型对城市治理水平的影响效应研究--基于“信息惠民”试点政策的准自然实验.pdf
- 2025轻定制趋势白皮书.pdf
- 中小学教师对教育评价改革的态度及其影响因素研究--以上海市H区为例.pdf
- 长期护理保险制度下失能评级博弈问题分析.pdf
- 2025年第三季度大连写字楼与零售市场概况.pdf
- 中小学女校长的领导风格研究--基于上海市三位女校长的调查.pdf
- 破解94%核心银行困境:现代化转型因何搁浅揭秘CIO的破局之道.pdf
- 政务信息公开对政府信任的影响及其作用机制研究.pdf
- 数字技术赋能基层治理的问题研究--以“慧治平台”为例.pdf
原创力文档


文档评论(0)