软件水平考试程序员易错题(2019/3/12) |
第1题:void f(p1,p2)
int *p1,*p2; { int i,j; *p2=0; for(i=0;i<3;i++) for(j=i;j<3;j++) *p2+=*(pl+i*3+j); return; } main() { int a[3][3]={{1,2},{3,4},{5,6}}; int s; f(a,&s); printf("%d",s); } |
【分析题】: |
第2题:函数fopen()的返回值不能是( )
A、NULL B、0 C、1 D、某个内存地址 |
【单选题】: |
第3、4、5、6、7题: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 |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |
第8题:函数调用时,下列说法中不正确的是 ( )
A、若用值传递方式,则形式参数不予分配内存 B、实际参数和形式参数可以同名 C、主调函数和被调用函数可以不在同一个文件中 D、函数间传送数据可以使用外部全局变量 |
【单选题】: |
第9题:数据库技术中的“脏数据',是指__(35)__的数据。
35. A、错误 B、回返 C、未提交 D、未提交的随后又被撤消 |
【单选题】: |