资源描述:
《2011年3月份全国计算机等级考试二级c语言机试题库》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、2011年3月份全国计算机等级考试二级C语言机试题库第01套:给定程序中,函数fun的功能是:将形参n所指变量中,各位上为偶数的数去除,剩余的数按原来从高位到低位的顺序组成一个新的数,并通过形参指针n传回所指变量。例如,输入一个数:27638496,新的数:为739。请在程序的下划线处填入正确的内容并把下划线删除,使程序得出正确的结果。注意:源程序存放在考生文件夹下的BLANK1.C中。不得增行或删行,也不得更改程序的结构!给定源程序:#includevoidfun(unsignedlong*n){unsignedlongx=0,i;intt;i=1;while(*
2、n){t=*n%__1__;if(t%2!=__2__){x=x+t*i;i=i*10;}*n=*n/10;}*n=__3__;}ofchickenmanurebacteria,eggscanbekilled,makechickenmanuresafeorganicfertilizerwithhighefficiency.Timelywatering,makesureseedlingstomoisturerequirements.(4)theapplicationofnewtypehighefficientinhibitorfertilizercaneffectivelypreven
3、tdamagecausedbytheeffectofquick-actingorganicfertilizeronseedling,andpreventsoilcompaction,promotehealthygrowth.2,theuseofsomeofthenewtechnicalmeasures,improvethesurvivalrate(1)increasedtreeholes.Useofexcavatorsandcombineartificialdigtreeholes,improveefficiency,increasethewaterstoragecapacityof
4、treeholes,enhanceseedlingdroughtresistance.(2)covered.Seedlingsplantedinthewinterandearlyspringseason,andafterfillingfloodedtwice,points,andplasticfilmmulchingtreeholes,rootsofboththetemperatureandreducethemoisturetoevaporate,reducingplantdeathduetophysiologicaldrought,improvethesurvivalrateofs
5、eedlings.(3)treeprotection.Aftertothetrunkwitharopewinding,outsideonthecoveredalayerofmulch,moisturizing,thermalinsulation,canimprovethesurvivalrateofseedlings.(4)theuseofbranchPo.Baoisthelatesttechnologyofcultivationoffruittrees,branches,especiallyformoreexpensivebutdifficultbranchesofseedling
6、s,haveobviouseffectsinGardentreespeciescanalsobeused.Second,measurestoreducecostsandshorten,reducelaborintensitymain(){unsignedlongn=-1;while(n>99999999
7、
8、n<0){printf("Pleaseinput(09、:判断是否是奇数,所以应填:0。第三处:最后通形参n来返回新数x,所以应填:x。***************************************************给定程序MODI1.C中函数fun的功能是:计算n!。例如,给n输入5,则输出120.000000。请改正程序中的错误,使程序能输出正确的结果。注意:不要改动main函数,不得增行或删行,也不得更改程序的结构!给定源程序:#includedoublefun(i