完整版C语言英文试题.docx
《完整版C语言英文试题.docx》由会员分享,可在线阅读,更多相关《完整版C语言英文试题.docx(3页珍藏版)》请在第一文库网上搜索。
1、2009-2010学年1学期C语言程序设计(C)课程考试试题拟题学院(系):信息科学与技术学院适用专业:信息08级,通信08级拟题人:校对人:(答案写在答题纸上,写在试题纸上无效)I.Choosetherightanswer(30marks).1. Determinetheoutputofthefo11owingstatement:printf(,%du,M-N);A) ,M,-N,B)M-NB) 3D)12. Whichoffo11owingisani11ega1user-definesymbo1?A)scantB)_123C)C$D)var3. WhichstatementisnotaCs
2、tatement?C)inta;a+;B)z=20,a+=c;C);D);4. Whichoperatorcanon1ybeapp1iedtointegers?A)%=B)/C)=D)=5. Determinetheoutputofthefo11owingprogram.voidmain()(inty=8,=7;printf(%d%dn,+,y+);)A)7,8B)9,7C)8,8D)8,96. Choosethewrongdefinitionforthecharacterstrings.O;A)charstr4=QUST;B)charstr=QUST”;C)char*str=QUST;D)C
3、harSM=QUS,T7. Determinetheoutputofthefo11owingprogram.voidmain()(inti,j,m=0;for(i=1;i=15;i+=5)for(j=3;j15C)18D)258. Forthe2-dimensiona1arrayintb3=1,0,-1,10,12,8,3,9,0;theva1uefortheb21is.A)8B)5C)3D)129. Inthestatementwhi1e(x),choosetheequiva1entexpressionforthex.A)x=0B)x=1C)x!=1D)x!=010. Forthefo11o
4、wingcodes:intz=5,*p=&z;theva1ueofthe*pis.A)theaddressofcB)unknownva1ueC)theaddressofpD)511. Inordertoassign45tovariantaandassign64tovariantbwiththestatementscanf(,%d%d”,&a,&b),whichinputformatiscorrect?A)4564B)45,64C)45;64D)456412. Whatisthebyte1engthofthestringutabcd,.A)6B)7C)8D)913. Determinetheou
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 完整版 语言 英文 试题
