欢迎来到天天文库
浏览记录
ID:20583343
大小:541.47 KB
页数:61页
时间:2018-10-13
《系统级编程选择题(2013)》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、MultipleChoiceQuiz1分数:1ConsiderthefollowingfragmentofC++sourcecode. Stringmsg;unsignedintx;inty; cin>>msg>>x>>y; cout<2、sbeexecutedimmediatelyaftertheinputstatement. 3.Ifxandyarebothpositive,anintegergreaterthanbothwillbeprinted.选择一个答案a.IIandIIIonlyb.nonec.IandIIonlyd.IIonly正确:BQuestion2分数:1Whichofthefollowingdoesadebuggerdo? 1.Analyzethesourcecodetofindprogrammingerrors. 2.Decodemachinecodegeneratedb3、yacompiler. 3.Stopexecutionofaprogram.选择一个答案a.IIIonlyb.I,II,andIII.c.IandIIIonlyd.IIandIIIonly正确:DQuestion3分数:1WhichofthefollowingVisualC++objectsarecontainedwithina"Project"? I.Files II.VisualC++Solutions III.Flowcharts选择一个答案a.I,IIandIIIb.Ionlyc.IIonlyd.IIandIIIonly正确:bQue4、stion4分数:1Comparedtoasequenceofmachinecodeinstructions,afragmentofCcode选择一个答案a.doesnotengageanytransistorsduringitsexecutionb.isthenativewaytoprogrammostcomputersc.describestheactionsofthecomputer,notjustoftheCPUd.maydescribethesamealgorithm正确:DQuestion5分数:1Integratedprogrammingenvironm5、entsmakeitdifficulttomixandmatchtoolsfromdifferentsources.Thisis选择一个答案a.bad,becauseallthetoolswillthenhavethesameuserinterfaceb.good,becausetoolsfromdifferentsourcescannotbemadetointeractwitheachotherc.good,becauseitensurescompilationisnotdoneincrementallybyaccidentd.bad,becausenosingle6、vendorislikelytobethesourceofallthebesttools正确:D这次提交的分数:1/1。Question6分数:1Whenusingadebuggertofindthecauseofaprogram'sincorrectbehavior,选择一个答案a.itisfastesttostartbystoppingthedebuggerlongbeforethebehaviorappearsb.theprogramisusuallyexecutedtothepointatwhichthebehavioroccursandthenexecute7、dbackwardstofindthecausec.itisoftennecessarytostarttheprogrammultipletimesunderthedebuggerd.thefaultycodefragmentmustfirstbeidentified正确:C这次提交的分数:1/1。Question7分数:1InVisualC++,aWin32ConsoleApplicationis选择一个答案a.thestatuswindowoftheVisualC++environmentb.aprogramthatisabletocontrol
2、sbeexecutedimmediatelyaftertheinputstatement. 3.Ifxandyarebothpositive,anintegergreaterthanbothwillbeprinted.选择一个答案a.IIandIIIonlyb.nonec.IandIIonlyd.IIonly正确:BQuestion2分数:1Whichofthefollowingdoesadebuggerdo? 1.Analyzethesourcecodetofindprogrammingerrors. 2.Decodemachinecodegeneratedb
3、yacompiler. 3.Stopexecutionofaprogram.选择一个答案a.IIIonlyb.I,II,andIII.c.IandIIIonlyd.IIandIIIonly正确:DQuestion3分数:1WhichofthefollowingVisualC++objectsarecontainedwithina"Project"? I.Files II.VisualC++Solutions III.Flowcharts选择一个答案a.I,IIandIIIb.Ionlyc.IIonlyd.IIandIIIonly正确:bQue
4、stion4分数:1Comparedtoasequenceofmachinecodeinstructions,afragmentofCcode选择一个答案a.doesnotengageanytransistorsduringitsexecutionb.isthenativewaytoprogrammostcomputersc.describestheactionsofthecomputer,notjustoftheCPUd.maydescribethesamealgorithm正确:DQuestion5分数:1Integratedprogrammingenvironm
5、entsmakeitdifficulttomixandmatchtoolsfromdifferentsources.Thisis选择一个答案a.bad,becauseallthetoolswillthenhavethesameuserinterfaceb.good,becausetoolsfromdifferentsourcescannotbemadetointeractwitheachotherc.good,becauseitensurescompilationisnotdoneincrementallybyaccidentd.bad,becausenosingle
6、vendorislikelytobethesourceofallthebesttools正确:D这次提交的分数:1/1。Question6分数:1Whenusingadebuggertofindthecauseofaprogram'sincorrectbehavior,选择一个答案a.itisfastesttostartbystoppingthedebuggerlongbeforethebehaviorappearsb.theprogramisusuallyexecutedtothepointatwhichthebehavioroccursandthenexecute
7、dbackwardstofindthecausec.itisoftennecessarytostarttheprogrammultipletimesunderthedebuggerd.thefaultycodefragmentmustfirstbeidentified正确:C这次提交的分数:1/1。Question7分数:1InVisualC++,aWin32ConsoleApplicationis选择一个答案a.thestatuswindowoftheVisualC++environmentb.aprogramthatisabletocontrol
此文档下载收益归作者所有