您好,欢迎访问三七文档
Question分数:1Whichofthefollowingisabletodescribeacomputationatthehighestlevelofabstraction?选择一个答案a.C++codeb.logicGatesc.machinecoded.Ccode正确这次提交的分数:1/1。Question2分数:1WhichofthefollowingVisualC++objectsarecontainedwithinaProject?I.FilesII.VisualC++SolutionsIII.Flowcharts选择一个答案a.IIandIIIonlyb.I,IIandIIIc.IIonlyd.Ionly正确这次提交的分数:1/1。Question3分数:1Whenusingadebuggertofindthecauseofaprogram'sincorrectbehavior,选择一个答案a.itisoftennecessarytostarttheprogrammultipletimesunderthedebuggerb.thefaultycodefragmentmustfirstbeidentifiedc.itisfastesttostartbystoppingthedebuggerlongbeforethebehaviorappearsd.theprogramisusuallyexecutedtothepointatwhichthebehavioroccursandthenexecutedbackwardstofindthecause正确这次提交的分数:1/1。Question4分数:1Comparedtoasequenceofmachinecodeinstructions,afragmentofCcode选择一个答案a.describestheactionsofthecomputer,notjustoftheCPUb.maydescribethesamealgorithmc.doesnotengageanytransistorsduringitsexecutiond.isthenativewaytoprogrammostcomputers错误这次提交的分数:0/1。Question5分数:1Whichofthefollowingdoesadebuggerdo?1.Analyzethesourcecodetofindprogrammingerrors.2.Decodemachinecodegeneratedbyacompiler.3.Stopexecutionofaprogram.选择一个答案a.IandIIIonlyb.IIIonlyc.IIandIIIonlyd.I,II,andIII.错误这次提交的分数:0/1。Question6分数:1Integratedprogrammingenvironmentsmakeitdifficulttomixandmatchtoolsfromdifferentsources.Thisis选择一个答案a.good,becauseitensurescompilationisnotdoneincrementallybyaccidentb.good,becausetoolsfromdifferentsourcescannotbemadetointeractwitheachotherc.bad,becauseallthetoolswillthenhavethesameuserinterfaced.bad,becausenosinglevendorislikelytobethesourceofallthebesttools正确这次提交的分数:1/1。Question7分数:1ConsiderthefollowingfragmentofC++sourcecode.Stringmsg;unsignedintx;inty;cinmsgxy;coutx+y;Whichofthefollowingis(are)trueregardingexecutionofthesegment?1.Theinputstatementwillalwaystakethesameamountoftimetoexecute.2.Theoutputstatementwillalwaysbeexecutedimmediatelyaftertheinputstatement.3.Ifxandyarebothpositive,anintegergreaterthanbothwillbeprinted.选择一个答案a.noneb.IIonlyc.IandIIonlyd.IIandIIIonly正确这次提交的分数:1/1。Question8分数:1InVisualC++,aWin32ConsoleApplicationis选择一个答案a.thesimplesttypeofapplicationVisualC++cangenerateb.builtbyusingsophisticatedApplicationWizardsc.aprogramthatisabletocontroltheoperatingsystemofawindowscomputerd.thestatuswindowoftheVisualC++environment正确这次提交的分数:1/1。Question1分数:1/1Whichofthefollowingnumericaloperationsismostlikelytoleadtolossofprecision?选择一个答案a.Integeradditionb.Integermultiplicationc.Floating-pointmultiplicationd.Floating-pointaddition正确这次提交的分数:1/1。Question2分数:0/1WhatisthevalueofthefollowingCexpression?0x1234^0x5432选择一个答案a.0x1030b.0x5636c.0x4606d.0x5434错误这次提交的分数:0/1。Question3分数:1/1Howis-10(decimal)representedinan8-bit2'scomplementbinaryformat?选择一个答案a.11110110b.11110101c.11111010d.10001010正确这次提交的分数:1/1。Question4分数:1/1Whichofthefollowingstatementsaboutfloating-pointnumbersinCistrue?I.Floating-pointnumbersareoftenonlyapproximationsofrealnumbers.II.A32-bitfloatonlyapproximatesdecimalfractions,buta64-bitdoublerepresentsthemexactly.III.Floating-pointnumberscanrepresentanyrationalrealnumberbutnotirrationals.选择一个答案a.IandIIIonlyb.IandIIonlyc.Ionlyd.IIonly正确这次提交的分数:1/1。Question5分数:1/1WhathappensinaCprogramwhenanadditionwouldcauseintegeroverflow?选择一个答案a.Anincorrectresultisproducedandexecutioncontinues.b.Anexception-handleriscalledwiththetwooperandsasparameters.c.Thecorrectvalueiscoercedtoafloatingpointnumber.d.Executionisterminated.正确这次提交的分数:1/1。Question6分数:1/1Whichofthefollowingcouldberepresentedbyonebitofinformation?选择一个答案a.thecolorofasinglepixelonatrue-colorcomputerdisplayb.thepositionofalightswitchc.thecurrentchannelofatelevisionreceiverd.anASCIIcharacter正确这次提交的分数:1/1。Question7分数:1/1Whatisthepurposeoftheexponentinfloatingpointnumbers?选择一个答案a.tospecifythebaseasbinary,octal,orhexadecimalb.themantissaisraisedtothepoweroftheexponentc.toindicatewherethedecimalorbinarypointshouldbed.tospecifythesuperscript正确这次提交的分数:1/1。Question8分数:1/1InC,usingdefaultfloatingpointsettings,whathappenswhenafloating-pointcomputationresultsinanoverflow?选择一个答案a.Anerroneousvalueiscomputedandexecutioncontinues.b.Programexecutionishalted.c.Anexceptionisraisedunlessdisabledbycalling_controlfp().d.Aspecialvalueinfinityiscomputed,testablewith_finite().正确这次提交的分数:1/1。Question9分数:1/1WhatisthevalueofthefollowingCexpression?0x1234&0x5432选择一个答案a.0x1030b.0x1111c.0x5636d.0x6666正确这次提交的分数:1/1。Question10分数:1/1Inacomputerwith4-bytewords,whichofthefollowingCexpressionstestswhetherptrcontainstheaddressofaword?I.(ptr&3)==0II.(ptr|3)==0III.(ptr%4)==0选择一个答案a.IIonlyb.Ionlyc.IandIIIonlyd.IIIonly正确这次提交的分数:1/1。Question11分数:1/1InC,whatisthefollowingbinarynumberinhexadecimal?11010101选择一个答案a.0xB5b.0xD5c.0x5Dd.0xAB正确这次提交的分数:1/1。Question12分数:1/1Howis46(decimal)representedinan8-bit2'scomplementbinaryformat?选择一个答案a.00101110b.00011110c.01000110d.00101100正确Question1分数:1/1Theprogramcountercontains选择一个答案a.theamountofmemoryaprogramiscurrentlyusingb.theaddressoftheCPUinstructionthatisabouttobefetchedc.thenumberoftimesaprogramhasbeenexecutedd.thenumberofCPUinstructionsaprogramhasexecutedsof
本文标题:系统级编程选择题
链接地址:https://www.777doc.com/doc-4290556 .html