31046040系统级编程_A

31046040系统级编程_A

ID:42594390

大小:112.82 KB

页数:13页

时间:2019-09-18

31046040系统级编程_A_第1页
31046040系统级编程_A_第2页
31046040系统级编程_A_第3页
31046040系统级编程_A_第4页
31046040系统级编程_A_第5页
资源描述:

《31046040系统级编程_A》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、311046040系统级编程(A闭)2013-2014-1一、单项选择题(本大题共30小题,每小题1分,共30分)提示:在每小题列出的四个备选项中只有一个是符合题目要求的,请将其代码填写在下表中。错选、多选或未选均无分。1.InVisualC++,aWin32ConsoleApplicationisA.thestatuswindowoftheVisualC++environmentB.thesimplesttypeofapplicationVisualC++cangenerateC.aprogr

2、amthatisabletocontroltheoperatingsystemofawindowscomputerD.builtbyusingsophisticated"ApplicationWizards"2.Whenusingadebuggertofindthecauseofaprogram'sincorrectbehavior,A.itisoftennecessarytostarttheprogrammultipletimesunderthedebuggerB.theprogramisus

3、uallyexecutedtothepointatwhichthebehavioroccursandthenexecutedbackwardstofindthecauseC.thefaultycodefragmentmustfirstbeidentifiedD.itisfastesttostartbystoppingthedebuggerlongbeforethebehaviorappears3.howis-11(decimal)representedinan8-bit2'scomplement

4、binaryformat?A.10001011B.11110100C.11110101D.111110114.WhatistheoutputofthisCcode?#includevoidmain(){intx=4;int*p=&x;int*k=p++;intr=p-k;printf("%d",r);}A.4B.8C.1D.Runtimeerror5.Explainthefeatureofstack.A.stackcannotreuseitsmemoryB.Allelement

5、sareofdifferentdatatypesC.AlloperationsareatoneendD.Anyelementcanbeaccessedfromitdirectly6.ajumpinstructionA.changesapointertopointtothenextelementofanarrayB.unconditionallysetstheprogramcountertoitsoperandC.increasestheprogramcounterD.changestheprog

6、ramcounteronlyifitsoperandisequaltozero7.inc,assumingthataninttakes4bytes,howmanybytesarerequiredtorepresentthefollowingarray?inta[12];A.44B.52C.12D.488.giventhefollowingdeclarationandinitializationofs,whatisthevalueoftheexpressions[6]?chars[]="strin

7、g";(10.0分)A.'g'B.''C.''D.anunpredictablevalue13/8311046040系统级编程(A闭)2013-2014-11.activationrecordsareorganizedinstacksbecause?13/8311046040系统级编程(A闭)2013-2014-1A.stacksallowactivationrecordstobepushedandpoppedinanyorder.B.stacksaresimpleenoughforth

8、ehardwaretomanage.C.functionsneedtoaccessallthevariablesofthefunctionsthatcallthem.D.theyareseldmneededduringprogramexecution.1.whenexecutingafunctioncallee(),whichofthefollowingaretrueregardingthevalueoftheframepointer?i.itmarksthetopofthestackframe

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。