欢迎来到天天文库
浏览记录
ID:33800753
大小:568.86 KB
页数:61页
时间:2019-03-01
《系统级编程选择题》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、MultipleChoiceQuiz1分数:1ConsiderthefollowingfragmentofC++sourcecode. Stringmsg;unsignedintx;inty; cin>>msg>>x>>y; cout<2、cutedimmediatelyaftertheinputstatement. 3.Ifxandyarebothpositive,anintegergreaterthanbothwillbeprinted.选择一个答案a.IIandIIIonlyb.nonec.IandIIonlyd.IIonly正确:BQuestion2分数:1Whichofthefollowingdoesadebuggerdo? 1.Analyzethesourcecodetofindprogrammingerrors. 2.Decodemachinecodegeneratedbyacompiler. 3、 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正确:bQuestion4分数:1Compared4、toasequenceofmachinecodeinstructions,afragmentofCcode选择一个答案a.doesnotengageanytransistorsduringitsexecutionb.isthenativewaytoprogrammostcomputersc.describestheactionsofthecomputer,notjustoftheCPUd.maydescribethesamealgorithm正确:DQuestion5分数:1Integratedprogrammingenvironmentsmakeitdifficulttomix5、andmatchtoolsfromdifferentsources.Thisis选择一个答案a.bad,becauseallthetoolswillthenhavethesameuserinterfaceb.good,becausetoolsfromdifferentsourcescannotbemadetointeractwitheachotherc.good,becauseitensurescompilationisnotdoneincrementallybyaccidentd.bad,becausenosinglevendorislikelytobethesourceofa6、llthebesttools正确:D这次提交的分数:1/1。Question6分数:1Whenusingadebuggertofindthecauseofaprogram'sincorrectbehavior,选择一个答案a.itisfastesttostartbystoppingthedebuggerlongbeforethebehaviorappearsb.theprogramisusuallyexecutedtothepointatwhichthebehavioroccursandthenexecutedbackwardstofindthecausec.itisoftenn7、ecessarytostarttheprogrammultipletimesunderthedebuggerd.thefaultycodefragmentmustfirstbeidentified正确:C这次提交的分数:1/1。Question7分数:1InVisualC++,aWin32ConsoleApplicationis选择一个答案a.thestatuswindowoftheVisualC++environmentb.aprogramthatisabletocontrol
2、cutedimmediatelyaftertheinputstatement. 3.Ifxandyarebothpositive,anintegergreaterthanbothwillbeprinted.选择一个答案a.IIandIIIonlyb.nonec.IandIIonlyd.IIonly正确:BQuestion2分数:1Whichofthefollowingdoesadebuggerdo? 1.Analyzethesourcecodetofindprogrammingerrors. 2.Decodemachinecodegeneratedbyacompiler.
3、 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正确:bQuestion4分数:1Compared
4、toasequenceofmachinecodeinstructions,afragmentofCcode选择一个答案a.doesnotengageanytransistorsduringitsexecutionb.isthenativewaytoprogrammostcomputersc.describestheactionsofthecomputer,notjustoftheCPUd.maydescribethesamealgorithm正确:DQuestion5分数:1Integratedprogrammingenvironmentsmakeitdifficulttomix
5、andmatchtoolsfromdifferentsources.Thisis选择一个答案a.bad,becauseallthetoolswillthenhavethesameuserinterfaceb.good,becausetoolsfromdifferentsourcescannotbemadetointeractwitheachotherc.good,becauseitensurescompilationisnotdoneincrementallybyaccidentd.bad,becausenosinglevendorislikelytobethesourceofa
6、llthebesttools正确:D这次提交的分数:1/1。Question6分数:1Whenusingadebuggertofindthecauseofaprogram'sincorrectbehavior,选择一个答案a.itisfastesttostartbystoppingthedebuggerlongbeforethebehaviorappearsb.theprogramisusuallyexecutedtothepointatwhichthebehavioroccursandthenexecutedbackwardstofindthecausec.itisoftenn
7、ecessarytostarttheprogrammultipletimesunderthedebuggerd.thefaultycodefragmentmustfirstbeidentified正确:C这次提交的分数:1/1。Question7分数:1InVisualC++,aWin32ConsoleApplicationis选择一个答案a.thestatuswindowoftheVisualC++environmentb.aprogramthatisabletocontrol
此文档下载收益归作者所有