系统级编程选择题集.docx

上传人:b****2 文档编号:11705751 上传时间:2023-06-02 格式:DOCX 页数:94 大小:46.77KB
下载 相关 举报
系统级编程选择题集.docx_第1页
第1页 / 共94页
系统级编程选择题集.docx_第2页
第2页 / 共94页
系统级编程选择题集.docx_第3页
第3页 / 共94页
系统级编程选择题集.docx_第4页
第4页 / 共94页
系统级编程选择题集.docx_第5页
第5页 / 共94页
系统级编程选择题集.docx_第6页
第6页 / 共94页
系统级编程选择题集.docx_第7页
第7页 / 共94页
系统级编程选择题集.docx_第8页
第8页 / 共94页
系统级编程选择题集.docx_第9页
第9页 / 共94页
系统级编程选择题集.docx_第10页
第10页 / 共94页
系统级编程选择题集.docx_第11页
第11页 / 共94页
系统级编程选择题集.docx_第12页
第12页 / 共94页
系统级编程选择题集.docx_第13页
第13页 / 共94页
系统级编程选择题集.docx_第14页
第14页 / 共94页
系统级编程选择题集.docx_第15页
第15页 / 共94页
系统级编程选择题集.docx_第16页
第16页 / 共94页
系统级编程选择题集.docx_第17页
第17页 / 共94页
系统级编程选择题集.docx_第18页
第18页 / 共94页
系统级编程选择题集.docx_第19页
第19页 / 共94页
系统级编程选择题集.docx_第20页
第20页 / 共94页
亲,该文档总共94页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

系统级编程选择题集.docx

《系统级编程选择题集.docx》由会员分享,可在线阅读,更多相关《系统级编程选择题集.docx(94页珍藏版)》请在冰点文库上搜索。

系统级编程选择题集.docx

系统级编程选择题集

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

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 经管营销 > 经济市场

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2