软件水平考试程序员易错题(2019/9/6) |
第1、2、3、4、5题:设四位数P=0110和Q=1010,则下列按位逻辑运算的等价运算及其结果为:
PQ+PQ=__(46)__; (P+Q)(P+Q)=__(47)__; Q+PQ=__(48)__; P(Q+P)=__(49)__; P+PQR+PQR=__(50)__ 其中R为任一个4位的二进位位串。 46. A、P⊕Q=1100 B、P⊕Q=1100 C、P⊕Q=0011 D、P⊕Q=0011 47. A、P⊕Q=1100 B、P⊕Q=1100 C、P⊕Q=0011 D、P⊕Q=0011 48. A、PQ=0010 B、P+Q=1110 C、PQ=0010 D、P+Q=1110 49. A、PQ=0010 B、P+Q=1110 C、PQ=0010 D、P+Q=1110 50. A、PQ=1101 B、P+Q=1101 C、PQ=0010 D、P+Q=0010 |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |
第6题:用十进制数表示表达式“12|012”的运算结果是( )
A、1 B、0 C、14 D、16 |
【单选题】: |
第7、8、9、10、11题: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 |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |
第12题:设有定义:"char s[12]={"string"};" 则printf("%d\n",strlen(s));的输出是( )
A、6 B、7 C、11 D、12 |
【单选题】: |
第13题:存储整型数据-7856时,在二进制文件和文本文件中占用的字节数分别是( )
A、2和2 B、2和5 C、5和5 D、5和2 |
【单选题】: |