2006下半年程序员级试题答案
上午(每空1分)
(1) | D | (16) | C | (31) | A | (46) | A | (61) | A |
(2) | B | (17) | B | (32) | A | (47) | D | (62) | B |
(3) | C | (18) | B | (33) | B | (48) | A | (63) | A |
(4) | B | (19) | C | (34) | D | (49) | D | (64) | B |
(5) | A | (20) | B | (35) | A | (50) | C | (65) | A |
(6) | C | (21) | A | (36) | B | (51) | B | (66) | D |
(7) | D | (22) | A | (37) | D | (52) | D | (67) | A |
(8) | A | (23) | B | (38) | C | (53) | D | (68) | B |
(9) | A | (24) | A | (39) | D | (54) | C | (69) | C |
(10) | B | (25) | C | (40) | B | (55) | B | (70) | B |
(11) | D | (26) | C | (41) | C | (56) | D | (71) | A |
(12) | C | (27) | B | (42) | D | (57) | B | (72) | C |
(13) | A | (28) | C | (43) | A | (58) | B | (73) | C |
(14) | B | (29) | D | (44) | A | (59) | D | (74) | A |
(15) | C | (30) | C | (45) | B | (60) | B | (75) | C |
下午
试题一
(1) 转第七步
(2) 栈空
(3) G[x,y] ← newcolor
(4) 第三步
(5) 可以
试题二
(1) !feof(fp)
(2) i < n &&str[i]!='\0'
(3) tag > = 1 && tag<= 3
(4) q++
(5) candidate[i]++
试题三
(1) M.cols
(2) M.rows
(3) Cpot[0] = 0
(4) Cpot[j-1] + num[j-1]
(5) M.data[t].c
试题四
(1) 对文字标签中的文字,分别控制其粗体、斜体和下划线设置
(2) 将该文本框清空;弹出消息框,提示重新输入;光标定位于该文本框中
(3) a(c) + a(c-1)
(4) StrTemp
(5) a(c)
试题五
(1) stud_info[i].link
(2) !strcmp(p->cname,kc)
(3) sum + p ->grade
(4) *num = count
(5) count ! = 0
试题六
(1) virtual void
(2) Decorator(t)
(3) Decorator(t)
(4) &f
(5) &a
试题七
(1) x,Lasty
(2) (i+1)
(3) (T - 20) / 180
(4) ShpMeter.Top +ShpMeter.Height
(5) 200 - T
试题八
(1) super(t)
(2) super(t)
(3) new FootDecoratro (newSalesTicket())
(4) printTicket()
(5) new HeadDecorator (null)