软件水平考试程序员易错题(2015-11-24) |
第1题:在关系模式R(U)中,如果X→Y和X→Z成立,则X→YZ也成立,这条规则称为__(34)__。
34. A、自反律 B、增广律 C、合并律 D、分解律 |
【单选题】: |
第2题:下列字符列中,能作为单个标识符是()l A.? a B. a=2 C.a.3 D. a___3 |
【单选题】: |
第3题:关于带参数的主函数,下列说法中错误的是( ) A.带参数的主函数中,形式参数名称是系统规定的,用户不能自己选择 B.带参数的主函数中,第1个形式参数是int型的 C.带参数的主函数中,第2个形式参数是字符型数组 D.带参数的主函数中,实际参数值只能在执行程序的命令行中获得 |
【单选题】: |
第4题:下列字符列中,可以作为“字符串常量”的是( ) A. ABC B. ABC” C.’abc’ D.’a’ |
【单选题】: |
第5题:假定所有变量均已正确定义,下列程序段运行后X的值是( ) a=b=c=0; x=35; if(!a)x--; else if(b);if(c)x=3;else x=4; A.34 B. 4 C. 35 D. 3 |
【单选题】: |
第6、7题:某服务器的 IP 地址是 74.52.46.99 ,则其机器中二进制的 IP 地址为__(61)__,这是一个属于__(62)__的 IP 地址。
61. A、01111000010100101000011010011001 B、00000011110010101010011010011001 C、00000010010l0ll01001011l0ll00011 D、010010100011010000l0ll1001100011 62. A、A类 B、B类 C、C类 D、D类 |
【单选题】: |
【单选题】: |
第8题:下列关于结构型变量的定义语句中,错误的是( ) A. typedef struct CCC B. #define GGG struct { char name[20];GGG CCC { char name[20]; int age; int age; }GGG; }; GGG abc ; GGG CCC abc; C.struct D.struct { char name[20]; { char name[20]; int age; int age; }ccc; }abc; CCC abc; |
【单选题】: |
第9题:不属于C语言保留字的是( ) A.for B.goto C.if D.loop |
【单选题】: |
第10题:设字符型变量 a=3,b=6,计算表达式 C=(a^b)<< 2后C的二进制值是( ) A. 00011100 B.00000111 C. 00000001 D. 00010100 |
【单选题】: |
第11、12、13、14、15题: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 |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |