作者sss955212 (灵魂的缺角)
看板TransCSI
标题[问题] 元智91年的转学考考古题
时间Mon May 28 13:02:30 2007
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 吗??
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
5F:推 godman362:第一题我也算40 05/28 19:39
6F:推 ahongyeh:第一题电脑算也是40耶~~ ^^ 05/29 01:32