如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
TestBankChapter2TheBasicsofC—MathFunctions,andInput/OutputMultipleChoiceQuestionsWhichofthefollowingisavalidCdeclarationstatement?a.Lengths:L1,L2,L3b.int,,c.intl1,l2,l3;d.realalpha,beta,gamma;Whichofthefollowingisaninvalidkeyworda.floatb.intc.returnd.printfOutputonthescreenforthestatementprintf(“month%d”,13);isa.month13b.month1c.month%13d.month13i=0;i++;ThevaluestoredinIafterexecutingtheabovestatementisa.0b.1c.2d.3inti,j;i=5;j=i/2;Thevaluestoredinjafterexecutingtheabovestatementisa.5b.2.5c.3d.2inti,j;i=5;j=i%2;Thevaluestoredinjafterexecutingtheabovestatementisa.5b.2c.1d.2.5inti,j;i=1;printf(“%d”,--i);Theoutputafterexecutingtheabovestatementisa.0b.1c.2d.programcrashinti,j;i=1;printf(“%d”,i++);Theoutputafterexecutingtheabovestatementisa.0b.1c.2d.programcrashinta=5,b=3;a=b+a/2;printf(“%d”,a);Theoutputafterexecutingtheabovestatementisa.7b.6c.5d.4Choosethestatementwillread15intovariableifromuserkeyboardinputwhenbeingexecuted:a.printf(“%d”,i);b.scanf(“%d”,i);c.scanf(“15”,i);d.scanf(“%d”,&i);Whatisthenecessaryinputsoastoread15and20intoiandjrespectivelyforthefollowinginputstatement?scanf(“%d:%d”,&i,&j);a.15:20b.1520c.1520d.15-20Outputofthefollowingstatementis(blankspacedenotedas_)printf(“%4d”,10);a.10__b._10_c.__10d.1010Outputofthefollowingstatementis(blankspacedenotedas_)printf(“%.2f”,10.345);a.10.345b.__10.345c.10.34d.10.35Outputofthefollowingstatementis(blankspacedenotedas_)printf(“%7.2f”,-10.345);a.-10.345b.10.345c._10.35d._-10.35Outputofthefollowingstatementis(blankspacedenotedas_)printf(“%.1e”,10000.1);a.1.0e+004b.0.1e+005c.1e+004d.0.100001e6inta;floatb=12.5;a=b/2;printf(“%d”,a);Theoutputafterexecutingtheabovestatementisa.6.5b.6c.6.25d.7inta,b=3;a=1.5+(float)b/2;printf(“%d”,a);Theoutputafterexecutingtheabovestatementisa.2.5b.2c.3d4inta=3;a+=4;printf(“%d”,a);Theoutputafterexecutingtheabovestatementisa.3b.4c.12d.7inta=2,b=2;a+=3*b;printf(“%d”,a);Theoutputafterexecutingtheabovestatementisa.10b.8c.6d.9inta,b,c,d;a=(b=2)*(c=3)/(d=5);printf(“%d