软件水平考试程序员易错题(2018/3/14) |
第1题:main()
{ int i,a[5]; for(i=0;i<<5;i++) a[i]=9*(i-2+4*(i>2))%5; for(i=4;i>=0;i--) printf("=",a[i]); } |
【分析题】: |
第2、3、4、5、6题:softwaredesignisa__(71)__process.Itrequiresacertain__(72)__off1aironthepartofthedesigner.Designcannotbelearnedfromabook.Itmustbepracticedandlearntbyexperienceandstudyofexistingsystems.Awell__(73)__softwaresystemisstraightforwardtoimplementandmaintain,easily__(74)__andreliable.Badly__(73)__softwaresystems,althoughtheymayworkare__(75)__tobeexpensivetomaintain,difficulttotestandunreliable.
71. A、create B、createD、C、creating D、creative 72. A、amount B、amounted` C、mount D、mounteD、73. A、design B、designeD、C、designing D、designs 74. A、understanD、 B、understands C、understanding D、understooD、75. A、like B、likely C、unlike D、unlikely |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |
第7题:设整型变量i的值为3,则计算表达式i---i后表达式的值为( )
A、0 B、l C、2 D、表达式出错 |
【单选题】: |
第8题:# include"stdio.h"
main() { char c; while((c=getchar())!=’\n’) switch(c) {case ’0’: case’1’: putchar(c); case’2’:putchar(c);break; case’3’:putchar(c); default:putchar(c+1);break; } printf("\n"); } 假定本程序执行时输入:1357/(其中的/代表回车换行符)。 |
【分析题】: |
第9题:在关系模式R(U)中,如果X→Y和X→Z成立,则X→YZ也成立,这条规则称为__(34)__。
34. A、自反律 B、增广律 C、合并律 D、分解律 |
【单选题】: |