软件水平考试程序员易错题(2015-11-20) |
第1、2、3、4、5题: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 |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |
第6题:计算平方数时不可能引起二义性的宏定义是( ) A.#define SOR(x)x*x B.#define SQR(x)(x)*(x) C.# define SQR(x)(x*x) D.# define SQR(x)((x)*(x)) |
【单选题】: |
第7题:在以下字符列中,合法的长整型常数是( ) A. OL B. 4962710 C. 0.054838743 D. 2.1869el0 |
【单选题】: |
第8题:设a为整型变量,下列C表达式中,不能表达数学关系式:10 A.10 B.a==11||a==12|| a==13|| a==14 C.a>10&&a<15 D.!(a<=10)&&!(a>=15) |
【单选题】: |
第9题:下列字符列中,不是用来表达转义字符是( ) A.\\ B.\' C.074 D. \0 |
【单选题】: |
第10题:设有定义语句“int a[]={2, 4,6,8,10},*p=s;”,则值为8的表达式是( ) A.*p+3 B.*p+4 C.*(p+4) D.*(s+3) |
【单选题】: |
第11题:一般说来,用户可以通过两类接口请求操作系统的服务,一类是作业一级的接口(如命令语言,JCL等);另一类是编程接口,即提供一组__(28)__,供实用程序、应用程序与用户程序等请求操作系统的服务。
28. A、程序编辑 B、特权操作 C、系统调用 D、进程调度 |
【单选题】: |
第12题:执行下列程序后的输出结果是( ) #define M(a,b)(a)>(b)?(a):(b) main() { int i=10,i=15; printf("%d\n",10*M(i,j)); } A.10 B.15 C.100 D .150 |
【单选题】: |
第13题:# 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/(其中的/代表回车换行符)。 |
【分析题】: |
第14、15、16、17、18题:软件测试的目的是__(16)__,通常可分为白盒测试和黑盒测试。白盒测试是根据程序的__(17)__来设计测试用例,黑盒测试是根据软件的规格说明来设计测试用例。常用的黑盒测试方法有边值分析、等价类划分、错误猜测、因果图等。其中,__(18)__经常与其它方法结合起来使用。软件测试的步骤主要有单元测试、集成测试和确认测试。如果一个软件作为产品被许多客户使用的话,在确认测试时通常要经过α测试和β测试的过程。其中,α测试是__(19)__进行的一种测试。在软件设计和编码时,采取 __(20)__等措施都有利于提高软件的可测试性。
16. A、发现程序中的所有错误 B、尽可能多地发现程序中的错误 C、证明程序是正确的 D、证明程序做了应做的事 17. A、功能 B、性能 C、内部逻辑 D、内部数据 18. A、边值分析 B、等价类划分 C、错误猜测 D、因果图 19. A、在开发者现场由开发方的非本项目开发人员 B、在开发者现场由用户 C、在用户现场由开发方的非本项目开发人员 D、在用户现场由用户使 20. A、不使用标准文本以外的语句,书写详细正确的文档 B、不使用标准文本以外的语句,采用良好的程序结构 C、书写详细正确的文档,信息隐蔽 D、书写详细正确的文档,采用良好的程序结构 |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |