[問題] 元智91年的轉學考考古題
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
推
05/28 13:29, , 1F
05/28 13:29, 1F
→
05/28 13:30, , 2F
05/28 13:30, 2F
推
05/28 13:37, , 3F
05/28 13:37, 3F
推
05/28 15:09, , 4F
05/28 15:09, 4F
推
05/28 19:39, , 5F
05/28 19:39, 5F
推
05/29 01:32, , 6F
05/29 01:32, 6F
討論串 (同標題文章)
以下文章回應了本文 (最舊先):
完整討論串 (本文為第 1 之 8 篇):