作者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