2017年电大专科程序设计基础形考任务

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

12CPU34ENIAC56CPUCentralProcessingUnit378910RAMROM11121314:1516__________________22022______A.B.PASCALC.D.3______A.B.C.D.4______A.B.C.D.5______A.B.C.D.6______A.B.C.D.7______A.B.C.D.8______A.B.C.D.9______________________A.B.C.10_____________________A.B.C.11________________________A.B.C..(5,55)1C______A.B.C.D.2Cint______A.065535B.-3276832767C.065536D.-32767327683Cxyz______A.x=y&y=zB.xyzC.x=y=zD.x=y&&y=z4C_____________________A.B.C.5Cint______A.0678B.32767C.0XABCD.32768L6C______A.CgotoB.gotoCC.whiledo-whileD.switchif7C#defineR20____________charr1;__________A.r1B.r1C.8#includestdio.hmain(){inta,b;scanf(%d%d,&a,&b);if(++a=b)printf(Yes);printf(a+b=%d\n,a+b);}a=6b=8___________A.a+b=%d\n,14B.a+b=14C.a+b=15D.159main(){inta=0;for(a=0;a3;a++);printf(%d\n,a);}___________A.2B.4C.1D.310#includestdio.hmain(){inti=0,j=0,k=0,m;for(m=0;m4;m++)switch(m){case0:i=m++;case1:j=m++;case2:k=m++;case3:m++;}printf(\n%d,%d,%d,%d,i,j,k,m);}______A.0125B.0124C.0113D.012311#includestdio.hmain(){intj;for(j=0;j10;j++){if(j%2==0)continue;printf(%d,j);}}___________A.02468B.1357C.13579D.2468123#includestdio.hvoidmain(){inta,b,c,max;printf(a,b,c:);scanf(%d%d%d,&a,&b,&c);max=a;if(maxb)max=b;if(maxc)max=c;//printf(a:%d,b:%d,c:%d\n,a,b,c);printf(%d\n,max);}1310main(){floata[11]={0};floatave=0;inti,j;print(pleaseenteryournum);for(i=0;i10;i++){scanf(%f\n,&a[i]);}for(j=0;j10;j++){a[10]+=a[j];}ave=a[10]/10;printf(theansweris%f,a[10]);}14nn1main(){intm,i,k;1scanf(%d,&m);1k=sqrt(m);1for(i=2;i=k;i++)if(m%i==0)break;1if(i=k+1)2printf(%disaprimenumber\n,m);1elseprintf(%disnotaprimenumber\n,m);1}1234______567i2i-1(i1)8n0n22n0n29h2h-1105316602______A.B.C.D.3______A.B.C.D.4______A.B.C.D.5______A.B.C.D.6______A.B.C.D.7NM______________________A.1N=M+2B.2N=M+2C.2N=M+18______A.B.C.D.9______________________A.DEBACABDECB.EDBCADEBACC.ABDECEDBCA10ABCDEA.ABCDEB.BCDEAC.EABCDD.EDCBA11aA.abfecdB.aecbfdC.aedfbcD.acebdf123456.37.89104402_____A.B.C.D.3_____A.B.C.D.454A.B.C.D.5A.B.C.D.6()A.B.C.D.7A.B.C.D.8()A.B.C.D.9______A.B.C.D.10______A.B.C.D.goto11______A.B.C.D.(10,)12,.,,,.,,,

1 / 12
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功