软件水平考试程序员易错题(2019/10/16) |
第1、2、3、4、5题:Aninstructionismadeupofoperationsthat__(66)__thefunctiontobeperformedandoperandsthatrepresentthedatatobeoperatedon.Forexample,ifaninstructionistoperformtheoperationof__(67)__twonumbers,itmustknow__(68)__thetwonumbersare.Theprocessor'sjobisto__(69)__instructionsandoperandsfrommemoryandtoperformeachoperation.Havingdonethat,itsignalsmemorytosendit__(70)__instruction.
66. A、skip B、smile C、smoke D、specify 67. A、adD、B、addeD、C、adding D、addition 68. A、when B、where C、which D、who 69. A、get B、make C、push D、put 70. A、ant B、last C、next D、secon |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |
第6题:设x和y为int型变量,则执行下面的循环后,y的值为( )
for(y=l, x=l; y<=50; y++){ if(x>=10) break; if(x%2==1){ x+=5; continue;} X -= 3; } A、2 B、4 C、6 D、8 |
【单选题】: |
第7题:设有定义语句“int a[]={2, 4,6,8,10},*p=s;”,则值为8的表达式是( )
A、*p+3 B、*p+4 C、*(p+4) D、*(s+3) |
【单选题】: |
第8题:设有如下定义,则正确的叙述为( )
char x[]={"abcdefg"}; char y[]={'a','b','c','d','e','f','g'}; A、数组x和数组y等价 B、数组x和数组y长度相同 C、数组X的长度大于数组y的长度 D、数组X的长度小于数组y的长度 |
【单选题】: |
第9题:int p(m,n)
int m,n; { int i,pp; for(i=pp=1;i PP*= m; return(pp); } main() { printf("%d"、 p(3,4)); } |
【分析题】: |