系统级编程选择题集.docx
- 文档编号:11705751
- 上传时间:2023-06-02
- 格式:DOCX
- 页数:94
- 大小:46.77KB
系统级编程选择题集.docx
《系统级编程选择题集.docx》由会员分享,可在线阅读,更多相关《系统级编程选择题集.docx(94页珍藏版)》请在冰点文库上搜索。
系统级编程选择题集
MultipleChoiceQuiz2
1
分数:
8/8
Whichofthefollowingcouldberepresentedbyonebitofinformation?
选择一个答案
a.thepositionofalightswitch
b.anASCIIcharacter
c.thecolorofasinglepixelonatrue-colorcomputerdisplay
d.thecurrentchannelofatelevisionreceiver
正确
这次提交的分数:
8/8。
Question2
分数:
8/8
InC,whatisthefollowingbinarynumberinhexadecimal?
11010101
选择一个答案
a.0xD5
b.0xB5
c.0xAB
d.0x5D
正确
这次提交的分数:
8/8。
Question3
分数:
8/8
WhatisthevalueofthefollowingCexpression?
0x1234^0x5432
选择一个答案
a.0x4606
b.0x5636
c.0x1030
d.0x5434
正确
这次提交的分数:
8/8。
Question4
分数:
8/8
WhatisthevalueofthefollowingCexpression?
0x1234&0x5432
选择一个答案
a.0x1030
b.0x1111
c.0x5636
d.0x6666
正确
这次提交的分数:
8/8。
Question5
分数:
8/8
Howis46(decimal)representedinan8-bit2'scomplementbinaryformat?
选择一个答案
a.01000110
b.00101100
c.00101110
d.00011110
正确
这次提交的分数:
8/8。
Question6
分数:
8/8
Howis-10(decimal)representedinan8-bit2'scomplementbinaryformat?
选择一个答案
a.11111010
b.11110101
c.10001010
d.11110110
正确
这次提交的分数:
8/8。
Question7
分数:
8/8
Inacomputerwith4-bytewords,whichofthefollowingCexpressionstestswhetherptrcontainstheaddressofaword?
I.(ptr&3)==0
II.(ptr|3)==0
III.(ptr%4)==0
选择一个答案
a.IIIonly
b.IIonly
c.Ionly
d.IandIIIonly
正确
这次提交的分数:
8/8。
Question8
分数:
8/8
WhathappensinaCprogramwhenanadditionwouldcauseintegeroverflow?
选择一个答案
a.Thecorrectvalueiscoercedtoafloatingpointnumber.
b.Anincorrectresultisproducedandexecutioncontinues.
c.Anexception-handleriscalledwiththetwooperandsasparameters.
d.Executionisterminated.
正确
这次提交的分数:
8/8。
Question9
分数:
8/8
Whatisthepurposeoftheexponentinfloatingpointnumbers?
选择一个答案
a.tospecifythesuperscript
b.tospecifythebaseasbinary,octal,orhexadecimal
c.themantissaisraisedtothepoweroftheexponent
d.toindicatewherethedecimalorbinarypointshouldbe
正确
这次提交的分数:
8/8。
Question10
分数:
8/8
Whichofthefollowingstatementsaboutfloating-pointnumbersinCistrue?
I.Floating-pointnumbersareoftenonlyapproximationsofrealnumbers.
II.A32-bitfloatonlyapproximatesdecimalfractions,buta64-bitdoublerepresentsthemexactly.
III.Floating-pointnumberscanrepresentanyrationalrealnumberbutnotirrationals.
选择一个答案
a.IandIIIonly
b.IandIIonly
c.IIonly
d.Ionly
正确
这次提交的分数:
8/8。
Question11
分数:
8/8
Whichofthefollowingnumericaloperationsismostlikelytoleadtolossofprecision?
选择一个答案
a.Integeraddition
b.Floating-pointaddition
c.Floating-pointmultiplication
d.Integermultiplication
正确
这次提交的分数:
8/8。
Question12
分数:
8/8
InC,usingdefaultfloatingpointsettings,whathappenswhenafloating-pointcomputationresultsinanoverflow?
选择一个答案
a.Anerroneousvalueiscomputedandexecutioncontinues.
b.Aspecialvalue"infinity"iscomputed,testablewith_finite().
c.Anexceptionisraisedunlessdisabledbycalling_controlfp().
d.Programexecutionishalted.
正确
这次提交的分数:
8/8。
MultipleChoiceQuiz3
1
分数:
7/7
Theprogramcountercontains
选择一个答案
a.thenumberoftimesaprogramhasbeenexecuted
b.theaddressoftheCPUinstructionthatisabouttobefetched
c.thenumberofCPUinstructionsaprogramhasexecutedsofar
d.theamountofmemoryaprogramiscurrentlyusing
正确
这次提交的分数:
7/7。
回复历史:
#
动作
回答
时间
原始分数
成绩
1
评分
theaddressoftheCPUinstructionthatisabouttobefetched
15年09月24日的12:
59:
14
7
7
2
关闭
theaddressoftheCPUinstructionthatisabouttobefetched
15年09月24日的13:
02:
50
7
7
Question2
分数:
7/7
ImmediatelyaftertheCPUexecutesaninstructionthatisneitherabranchnorajumpinstruction,theprogramcounter
选择一个答案
a.isincrementedbyone
b.isincrementedtopointtothefollowinginstruction
c.hasavaluethatcannotbedeterminedwithoutfurtherinformation
d.remainsunchanged
正确
这次提交的分数:
7/7。
Question3
分数:
7/7
ACPUregisterisawordofCPUmemorythat
选择一个答案
a.housesacriticalvariableforthedurationoftheexecutionofaprogram
b.isexplicitlyloadedandunloadedfromnormalmemorybycompiler-generatedinstructions
c.recordstheresultsofperiodicCPUdiagnostics
d.isautomaticallyloadedwhenaCPUinstructionreferstoawordofnormalmemory
正确
这次提交的分数:
7/7。
Question4
分数:
7/7
WhichofthefollowingcomputationsmaybeperformedbyexactlyoneCPUinstruction?
1.a=5;
2.a=b+c*5;
3.for(i=0;i<10;i+=a[i++]);
选择一个答案
a.Ionly
b.IIonly
c.I,II,andIII
d.IandIIonly
正确
这次提交的分数:
7/7。
Question5
分数:
8/8
Supposethat,usingatoolsuchasthememorywindowofVisualC++,wefoundthatacertainsetofcontiguousmemorylocationscontainedtheinteger0xC605CD623A8365000000.Whatcouldthesememorylocationshold?
1.theinteger0xC605CD623A8365000000
2.astring
3.aCPUinstruction
选择一个答案
a.Ionly
b.I,II,andIII
c.IandIIonly
d.IIIonly
正确
这次提交的分数:
8/8。
Question6
分数:
8/8
Abranchinstruction
选择一个答案
a.setstheprogramcountertooneofmanypossiblevalues
b.unconditionallysetstheprogramcountertoitsoperand
c.setstheprogramcountertooneoftwopossiblevalues
d.increasestheprogramcounterbyafixedamount
正确
这次提交的分数:
8/8。
Question7
分数:
8/8
Ajumpinstruction
选择一个答案
a.changesapointertopointtothenextelementofanarray
b.changestheprogramcounteronlyifitsoperandisequaltozero
c.increasestheprogramcounter
d.unconditionallysetstheprogramcountertoitsoperand
正确
这次提交的分数:
8/8。
Question8
分数:
8/8
Themachinecodegeneratedfromsourcecodebyacompiler
选择一个答案
a.doesnotpreservealltheinformationgiveninthesourcecode
b.canbeeasilyinspectedtocheckthecorrectnessofthecompiler
c.executesmorequicklythanthesourcecode
d.associatesvariablevalueswiththeirnames
正确
这次提交的分数:
8/8。
Question9
分数:
8/8
Whichofthefollowingaretrueoftheeffectthatoptimizationshaveonthemachinecodegeneratedbycompilers?
I.Theresultingcodewillbefasterand/orsmaller.
II.Theresultingcodewillbeclearer.
III.Theresultingcodewillbehardertodebug.
选择一个答案
a.I,II,andIII
b.Ionly
c.IandIIIonly
d.IandIIonly
正确
这次提交的分数:
8/8。
Question10
分数:
8/8
Whichofthefollowingisagoodreason(aregoodreasons)toequiptheCPUwithsmallamountsoffastmemory?
I.Tomakethedesignofthecompilersimpler
II.TomakesomeCPUinstructionssmaller
III.TomakesomeCPUinstructionsfaster
选择一个答案
a.IIonly
b.IIIonly
c.I,II,andIII
d.IIandIIIonly
正确
这次提交的分数:
8/8。
Question11
分数:
8/8
11.WhichofthefollowingmustbetrueifaprogramisstoppedataspecificlinewithintheVisualC++debugger?
I.Thereisatleastonebreakpointenabled.
II.Thereisabreakpointenabledonthatline.
III.Thereisabreakpointenabledonthelineprecedingthatline.
选择一个答案
a.none
b.IandIIonly
c.IandIIIonly
d.Ionly
正确
这次提交的分数:
8/8。
Question12
分数:
8/8
WithinVisualC++,whichofthefollowingwillrevealthevalueofavariablewhentheprogramisstoppedatabreakpoint?
I.Placingthemousepointeroverthevariablenameinthesourcefilewindow.
II.Insertingaprintf()intheprogram.
III.Typingthevariablenameonthe"Watch"window.
选择一个答案
a.IIandIIIonly
b.IandIIIonly
c.IIIonly
d.I,II,andIII
正确
这次提交的分数:
8/8。
Question13
分数:
8/8
ProgramscompiledforanIntelPentiumprocessordonotexecuteproperlyonaSPARCprocessorfromSunMicrosystemsbecause
选择一个答案
a.copyrightsregardingcodecannotbeviolated
b.theassemblymnemonicsforthesame"opcode"aredifferentinthetwoprocessors
c.theoperationcodesunderstoodbythetwoprocessorsaredifferent
d.thememoryofaSPARCCPUisnumberedfromtoptobottom
正确
这次提交的分数:
8/8。
MultipleChoiceQuiz4
1
分数:
0.9/1
TheVisualC++Memorywindowdisplays
选择一个答案
a.thenamesandvaluesofvariablesinmemory,interpretedinoneofseveralways
b.thecontentsofmemory,interpretedinoneofseveralways,withouttheassociatedvariablenames
c.thenamesandvaluesofvariablesinmemory,interpretedas32-bitintegersnomatterwhatthevariables'types
d.thecontentsofmemory,interpretedas32-bitintegers,withouttheassociatedvariablenames
正确
这次提交的分数:
1/1。
扣除先前的罚分,此次得分0.9/1。
回复历史:
#
动作
回答
时间
原始分数
成绩
1
评分
thecontentsofmemory,interpretedas32-bitintegers,withouttheassociatedvariablenames
15年10月8日的16:
09:
04
0
0
2
评分
thecontentsofmemory,interpretedinoneofseveralways,withouttheassociatedvariablenames
15年10月8日的16:
09:
16
1
0.9
3
关闭
thecontentsofmemory,interpretedinoneofseveralways,withouttheassociatedvariablenames
15年10月8日的16:
20:
44
1
0.9
Question2
分数:
1/1
Considerthefollowingcodefragment.
inta;
intb;
intmain(intargc,char*argv[]){
intc;
intd;
...
/*somecode*/
}
Whichofthefollowingmustbetrue?
选择一个答案
a.The
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 系统 编程 选择题
![提示](https://static.bingdoc.com/images/bang_tan.gif)