软件水平考试程序员易错题(2015-10-30) |
第1题:若有以下程序段,W和k都是整型变量,则不能与该程序段等价的循环语句是( ) W= k; LB: if(w==0) gotO LE; w - -; printf("*"); goto LB; LE: A. for(w=k;w!=0;W--)printf("*"); B. w= k; While(W--!=0) Prinif(”* ”); C. w= k; do{w--; prinif(“*”); } while( W!= 0); D. for(w=k;W;--W) printf("*"); |
【单选题】: |
第2题:能正确表达逻辑关系“-1 A.(-1 B.(-1 C.((-1 D.(-1 |
【单选题】: |
第3题:下列符号串中,合法的十进制整型常量是( ) A.09876 B.0x9876 C.9.876*e4 D.-9876 |
【单选题】: |
第4题:设整型变量m,n,a,b,c,d均为1,执行“( m=a>b)&&(n=a>b)"后m,n的值是( ) A.0,0 B.0,l C.1,0 D.1,l |
【单选题】: |
第5题:计算平方数时不可能引起二义性的宏定义是( ) A.#define SOR(x)x*x B.#define SQR(x)(x)*(x) C.# define SQR(x)(x*x) D.# define SQR(x)((x)*(x)) |
【单选题】: |
第6、7、8题:有多个设备可以实现不同网络或网段的互连,工作在开放系统互连参考模型物理层、数据链路和网络层的互连设备分别称为__(63)__、__(64)__和__(65)__。
63. A、网关 B、路由器 C、防火墙 D、中继器 64. A、转发器 B、防火墙 C、网桥 D、网关 65. A、转发器 B、路由器 C、网桥 D、中继器 |
【单选题】: |
【单选题】: |
【单选题】: |
第9题:一般说来,用户可以通过两类接口请求操作系统的服务,一类是作业一级的接口(如命令语言,JCL等);另一类是编程接口,即提供一组__(28)__,供实用程序、应用程序与用户程序等请求操作系统的服务。
28. A、程序编辑 B、特权操作 C、系统调用 D、进程调度 |
【单选题】: |
第10题:不是C语言提供的合法关键字是() A.switch B.begin C.case D.default |
【单选题】: |
第11题:在以下字符列中,合法的长整型常数是( ) A. OL B. 4962710 C. 0.054838743 D. 2.1869el0 |
【单选题】: |
第12、13、14、15、16题:software design is a __(71)__ process .It requires a certain __(72)__ of f1air on the part of the designer. Design can not be learned from a book .It must be practiced and learnt by experience and study of existing systems .A well __(73)__ software system is straightforward to implement and maintain ,easily __(74)__ and reliable .Badly __(73)__ software systems ,although they may work are __(75)__ to be expensive to maintain ,difficult to test and unreliable.
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 |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |