资源描述:
《C语言第六章循环结构复习题.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、循环结构程序设计复习题一.选择题1.以下while循环中,循环体执行的次数是:()k=1;while(--k)k=10;a)10次b)无限次c)一次也不执行d)1次2.有以下程序段,其中x为整型变量,以下选项中叙述正确的是:()x=0;while(!x!=0)x++;a)退出while循环后,x的值为0b)退出while循环后,x的值为1c)while的控制表达式是非法的d) while循环执行无限次3.有以下程序段,其中n为整型变量,执行后输出结果是:()n=20 ;while(n--) ;printf(“%d”,n) ;a) 2b)10c)
2、-1d) 04.有以下程序段,其中t为整型变量,以下选项中叙述正确的是:()t=1;技术官员村位于位于亚运城东部,主干道二以东石楼涌以西的地块,占地面积、m2,总建筑面积、m2,共包括地下室南区、地下室北区、地上部分1栋~12栋、服务中心、室外工程等多个单体工程。其中住宅面积m2,共12栋,1~7栋建筑层数为11层,8~12栋11层(局部复式顶层),首层局部架空,布置公建配套设施。integratedenergy,chemicalsandtextileYibincity,arethethreecorepillarsoftheindustry.I
3、n2014,thewuliangyebrandvalueto73.58billionyuan,thecity'sliquorindustrysliptostabilise.Promotingdeepdevelopmentofintegratedenergy,advancedequipmentmanufacturingindustry,changningdistrict,shalegasproductioncapacityreached277millioncubicmetres,builtthecountry'sfirstindependenth
4、igh-yieldwellsandpipelinesinthefirstsection,theleadinfactoryproductionandsupplytothepopulation.2.1-3GDPgrowthfigure2.1-4Yibin,Yibincity,Yibincity,fiscalrevenuegrowth2.1.4topographyterrainoverallisSouthwest,North-EasternState.Lowmountainsandhillsinthecitylandscapeasthemainrid
5、ge-and-Valley,pingbasmallfragmentednaturepicturefor"waterandthesecondlandofthesevenhills".236metersto2000metersabovesealevelinthecity,lowmountain,46.6%hills45.3%,pingbaonly8.1%.2.1.5developmentofYibinlandscapesanddistinctivefeatureinthecenterofthecity,withlimitations,andspat
6、ialstructureoftypicalzonalgroup,2012-citiesinbuildingwithanareaofabout76.2km2.Fromcity-buildingsituation,"oldtown-theSouthBank"Centerconstructionislaggingbehind,disintegrationoftheoldcityisslow,optimizationandupgrading,qualitypublicserviceresourcesarestillheavilyconcentrated
7、intheoldtowntogether.SouthbankCentrehasnotbeenformed,functionsoftheserviceareaspaceismissing.Meanwhile,peripheralgroupcentresservicewasweakandinadequateaccountingforcitydevelopment,"suspicious"patterncouldnotbeformed.Asregardstransport,withtheoutwardexpansionofcities,citiesh
8、avebeenexpanding,centripetalcitytrafficorganizationhasnotchanged,integrated