欢迎来到天天文库
浏览记录
ID:42594390
大小:112.82 KB
页数:13页
时间:2019-09-18
《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
此文档下载收益归作者所有