2004
下半年程序员级试题答案
上午
(每空1分)
(1)
|
B
|
(16)
|
C
|
(31)
|
D
|
(46)
|
C
|
(61)
|
A
|
(2)
|
D
|
(17)
|
D
|
(32)
|
B
|
(47)
|
A
|
(62)
|
A
|
(3)
|
A
|
(18)
|
C
|
(33)
|
C
|
(48)
|
B
|
(63)
|
C
|
(4)
|
D
|
(19)
|
A
|
(34)
|
A
|
(49)
|
A
|
(64)
|
C
|
(5)
|
A
|
(20)
|
D
|
(35)
|
C
|
(50)
|
B
|
(65)
|
B
|
(6)
|
C
|
(21)
|
C
|
(36)
|
D
|
(51)
|
D
|
(66)
|
B
|
(7)
|
B
|
(22)
|
A
|
(37)
|
A
|
(52)
|
B
|
(67)
|
C
|
(8)
|
C
|
(23)
|
C
|
(38)
|
C
|
(53)
|
D
|
(68)
|
D
|
(9)
|
A
|
(24)
|
B
|
(39)
|
B
|
(54)
|
C
|
(69)
|
B
|
(10)
|
B
|
(25)
|
A
|
(40)
|
A
|
(55)
|
B
|
(70)
|
C
|
(11)
|
D
|
(26)
|
C
|
(41)
|
A
|
(56)
|
C
|
(71)
|
D
|
(12)
|
D
|
(27)
|
A
|
(42)
|
A
|
(57)
|
A
|
(72)
|
D
|
(13)
|
B
|
(28)
|
B
|
(43)
|
C
|
(58)
|
D
|
(73)
|
A
|
(14)
|
C
|
(29)
|
D
|
(44)
|
D
|
(59)
|
C
|
(74)
|
C
|
(15)
|
B
|
(30)
|
D
|
(45)
|
A
|
(60)
|
D
|
(75)
|
B
|
下午
(
欢迎访问软件考试网www.hbsoft.net)
试题一
(1)i:1,1,8
(2)1→sw
(3) 0→BIT[i]
(4)NOP,或空操作
(5)1→BIT[i]
试题一
(1)i:1,1,8
(2)1→sw
(3) 0→BIT[i]
(4)NOP,或空操作
(5)1→BIT[i]
试题二
(1)j%2,及其等价形式
(2)i+=2,及其等价形式
(3)tag>2,或tag==3或tag>=3,及其等价形式
(4)9
(5)45
(1)j%2,及其等价形式
(2)i+=2,及其等价形式
(3)tag>2,或tag==3或tag>=3,及其等价形式
(4)9
(5)45
试题三
(
欢迎访问软件考试网www.hbsoft.net)
(1)p && k<i ,及其等价形式
(2)!p->next,及其等价形式
(3)q->next
(4)prep->next
(5)q->next=p
(1)p && k<i ,及其等价形式
(2)!p->next,及其等价形式
(3)q->next
(4)prep->next
(5)q->next=p
试题四
(1)(h-9)*60+m,及其等价形式
(2)time + R[k].d[ch-'a']*20 其中ch-'a'可以表示为ch-97,R[k]可以表示为R[R[k].no]
(3)R[t].num == R[j].num && R[t].time > R[j].time,及其等价形式
(4)t!=i,及其等价形式,表达式的值为真也正确
(5)R[i],及其等价形式
(1)(h-9)*60+m,及其等价形式
(2)time + R[k].d[ch-'a']*20 其中ch-'a'可以表示为ch-97,R[k]可以表示为R[R[k].no]
(3)R[t].num == R[j].num && R[t].time > R[j].time,及其等价形式
(4)t!=i,及其等价形式,表达式的值为真也正确
(5)R[i],及其等价形式
试题五
(
欢迎访问软件考试网www.hbsoft.net)
(1)Asc("A")+i-1 ,或64+i,及其等价形式
(2)(h-9)*60+m,及其等价形式
(3)Combol.Text
(4)Value
(5)time+R(k).d(m)*20 其中m可表示为Asc(ch)-Asc("A")或Asc(ch)-65,k可表示为R(R(k).no)
试题六 (C++)
(1)public Figure
(2)height*width
(3)public Rectangle ( 欢迎访问软件考试网www.hbsoft.net)
(4)this->height=this->width=width
(5)public Figure 若填public Rectangle只给1分
(1)Asc("A")+i-1 ,或64+i,及其等价形式
(2)(h-9)*60+m,及其等价形式
(3)Combol.Text
(4)Value
(5)time+R(k).d(m)*20 其中m可表示为Asc(ch)-Asc("A")或Asc(ch)-65,k可表示为R(R(k).no)
试题六 (C++)
(1)public Figure
(2)height*width
(3)public Rectangle ( 欢迎访问软件考试网www.hbsoft.net)
(4)this->height=this->width=width
(5)public Figure 若填public Rectangle只给1分
试题七
(
欢迎访问软件考试网www.hbsoft.net)
(1)False(2)True
(3)SetFocus
(4)Delete
(5)Update
(1)False(2)True
(3)SetFocus
(4)Delete
(5)Update
试题八 (Java)
(1)Figure
(2)height*width
(3)Rectangle
(4)super(width,width)
(5)Figure
(1)Figure
(2)height*width
(3)Rectangle
(4)super(width,width)
(5)Figure