软件水平考试程序员易错题(2018/6/15) |
第1题:设整型变量 a、b、c均为2,表达式 a+++b+++c++ 的结果是( )
A、6 B、9 C、8 D、表达式出错 |
【单选题】: |
第2、3、4、5、6题: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 |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |
【单选题】: |
第7题:如果某个函数在定义时,省略了存储类型,则默认的存储类型是( )
A、auto B、void C、extern D、static |
【单选题】: |
第8题:以只写方式打开一个二进制文件,应选择的文件操作方式是( )
A、"a+" B、"w+" C、"rb" D、"Wb" |
【单选题】: |
第9题:编函数计算并返回m行6列整型数组a周边元素之和(即第1行、第m行、第1列、第6列上元素之和,但是重复元素只参加1次求和)。数组名a和m、n作为函数参数。 |
【分析题】: |