欢迎来到天天文库
浏览记录
ID:17939256
大小:128.00 KB
页数:22页
时间:2018-09-11
《ssd6选择题答案无重复》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、1.ConsiderthefollowingfragmentofC++sourcecode.Stringmsg;unsignedintx;inty;cin>>msg>>x>>y;cout<2、elyaftertheinputstatement.Ifxandyarebothpositive,anintegergreaterthanbothwillbeprinted.(a)IIonly(b)none(c)IandIIonly(d)IIandIIIonlyCorrectansweris(b)Seesection1.1.1ofthecoursenotes.--------------------------------------------------------------------------------2.Int3、egratedprogrammingenvironmentsmakeitdifficulttomixandmatchtoolsfromdifferentsources.Thisis(a)bad,becausenosinglevendorislikelytobethesourceofallthebesttools(b)good,becauseitensurescompilationisnotdoneincrementallybyaccident(c)bad,becauseallthetoolswillthenhavethesam4、euserinterface(d)good,becausetoolsfromdifferentsourcescannotbemadetointeractwitheachotherCorrectansweris(a)Seesection1.1.4ofthecoursenotes.--------------------------------------------------------------------------------3.InVisualC++,aWin32ConsoleApplicationis(a)apro5、gramthatisabletocontroltheoperatingsystemofawindowscomputer(b)thesimplesttypeofapplicationVisualC++cangenerate(c)thestatuswindowoftheVisualC++environment(d)builtbyusingsophisticated"ApplicationWizards"Correctansweris(b)Seesection1.2.1ofthecoursenotes.4.Whichofthefol6、lowingmustbetrueifaprogramisstoppedataspecificlinewithintheVisualC++debugger?Thereisatleastonebreakpointenabled.Thereisabreakpointenabledonthatline.Thereisabreakpointenabledonthelineprecedingthatline.(a)IandIIIonly(b)IandIIonly(c)none(d)IonlyCorrectansweris(c)5.What7、doesthefollowingprogramprint?voidcallee(int*count){(*count)++;}intmain(intargc,char*argv[]){intcount=4;callee(count);printf("%d",count);return0;}(a)8(b)nothing:itwillnotcompilesuccessfully(c)4(d)5Correctansweris(b)Seesection1.4.1ofthecoursenotes.6.Considerthefollowi8、ngprogram.inti;int*jp=&i;intmain(inti,char*argv[]){printf("%d%d",(int)&i,(int)jp);//随机值i,与局部值i不一样}Whichofthefollowingdescribeswhatitprin
2、elyaftertheinputstatement.Ifxandyarebothpositive,anintegergreaterthanbothwillbeprinted.(a)IIonly(b)none(c)IandIIonly(d)IIandIIIonlyCorrectansweris(b)Seesection1.1.1ofthecoursenotes.--------------------------------------------------------------------------------2.Int
3、egratedprogrammingenvironmentsmakeitdifficulttomixandmatchtoolsfromdifferentsources.Thisis(a)bad,becausenosinglevendorislikelytobethesourceofallthebesttools(b)good,becauseitensurescompilationisnotdoneincrementallybyaccident(c)bad,becauseallthetoolswillthenhavethesam
4、euserinterface(d)good,becausetoolsfromdifferentsourcescannotbemadetointeractwitheachotherCorrectansweris(a)Seesection1.1.4ofthecoursenotes.--------------------------------------------------------------------------------3.InVisualC++,aWin32ConsoleApplicationis(a)apro
5、gramthatisabletocontroltheoperatingsystemofawindowscomputer(b)thesimplesttypeofapplicationVisualC++cangenerate(c)thestatuswindowoftheVisualC++environment(d)builtbyusingsophisticated"ApplicationWizards"Correctansweris(b)Seesection1.2.1ofthecoursenotes.4.Whichofthefol
6、lowingmustbetrueifaprogramisstoppedataspecificlinewithintheVisualC++debugger?Thereisatleastonebreakpointenabled.Thereisabreakpointenabledonthatline.Thereisabreakpointenabledonthelineprecedingthatline.(a)IandIIIonly(b)IandIIonly(c)none(d)IonlyCorrectansweris(c)5.What
7、doesthefollowingprogramprint?voidcallee(int*count){(*count)++;}intmain(intargc,char*argv[]){intcount=4;callee(count);printf("%d",count);return0;}(a)8(b)nothing:itwillnotcompilesuccessfully(c)4(d)5Correctansweris(b)Seesection1.4.1ofthecoursenotes.6.Considerthefollowi
8、ngprogram.inti;int*jp=&i;intmain(inti,char*argv[]){printf("%d%d",(int)&i,(int)jp);//随机值i,与局部值i不一样}Whichofthefollowingdescribeswhatitprin
此文档下载收益归作者所有