作者dynamicy (freedom)
看板TransCSI
标题Re: [问题] 元智91年的转学考考古题
时间Mon May 28 15:26:33 2007
※ 引述《sss955212 (灵魂的缺角)》之铭言:
1. Consider the following procedure.If the argument n is 5,what will the
procedure return?
procedure SUM(n:integer)
{if n=1
return(0)
else
return(SUM(n-1)+n*(n-1))
}
答案是 24 吗??
SUM(5)=SUM(4)+5*4=20+20=40
SUM(4)=SUM(3)+4*3=8+12=20
SUM(3)=SUM(2)+3*2=2+6=8
SUM(2)=SUM(1)+2*1=2
SUM(1)=0
2.Show that if xy=0,then x⊕y=x+y.
什麽是⊕??
3. Sort the following elements of the memory hierarchy interm of access speed.
(a)Main memory (b)Harddisk (c)L1 Cache (d)Network (e)CPU registers
(f)L2 Cache
答案:ecfabd Network是memory吗?
错,电脑内部传输会比外部快
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.175.184.144
1F:推 bilsted:(Exclusive OR,运算符号为⊕)计概课本应该会有吧._. 05/28 13:29
2F:→ bilsted:多看点书吧QQ 第三题是要提排速率. Network 就是Network 05/28 13:30
3F:推 bilsted:sry 看错你的意思 network 也会跟memory 有关联阿 05/28 13:37
4F:推 devilsatoshi:第一题我算40耶= = 有正确答案吗? 05/28 15:09
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.123.22.125
※ 编辑: dynamicy 来自: 140.123.22.125 (05/28 15:27)
5F:→ dynamicy:个人觉得你需要加强的东西非常的多 05/28 15:28