
代號:5438 
頁次:4
-
3 
 
21 考慮一具有 4個區塊(blocks)的直接對映快取記憶體(direct-mapped cache),每個區塊容量為一個字組
(word)。若記憶體(memory)位址為字組定址(word-addressing),當記憶體位址存取的順序為 11, 13, 
11, 13, 8, 1, 8, 9, 8 時,總共發生幾次快取記憶體錯失(cache miss)? 
4  5  6  7 
22 下列關於陣列(Array),何者錯誤? 
可以用指標(pointer)來存取陣列 
下標(subscript)必須是整數(integer)或是整數表達式(integer expression) 
是連續的一塊記憶體位置 
是一動態實體(dynamic entity) 
23 二維陣列(Array)的定義和初始為: 
int a[3][3]={{1}, {4, 5}, {7, 8, 9}}; 
下列何者錯誤? 
a[0][0]is set to 1  a[1][2]is set to 7  a[2][1]is set to 8  a[1][0]is set to 4 
24 假設堆疊的頂端(top)在左邊。有一堆疊(stack)初始是空的,當執行下列運算後,堆疊內的資料為何? 
push 4; push 6; pop; push 9; push 4; pop; 
4 6 9 4  4 9  6 9 4  9 4 
25 下列與電腦演進相關的敘述何者正確? 
現今電腦所使用的主要電子元件為真空管(vacuum tube) 
電腦組成的五大單元中,算術與邏輯單元(arithmetic and logic unit)和記憶單元(memory  unit )共同
組成中央處理單元(central processing unit) 
過去處理器指令集的發展歷史,先有複雜指令集(complex instruction set computer, CISC),而後才有
精簡指令集(reduced instruction set computer, RISC) 
摩爾定律(Moore’s law)說明每隔 3年,電腦的運算效能將有 2倍的成長 
26 下列選項之電路,何者輸入線數(number of input lines)比輸出線數(number of output lines)少? 
1024×32 唯讀記憶體(read-only memory, ROM)。其中,1024 為字組數量(number of words),而 32
為每個字組的位元數(number of bits per word) 
全加法器(full adder) 
4×1 多工器(multiplexer, MUX) 
8對3線優先編碼器(8-to-3 line priority encoder) 
27 線上影片播放網站之會員經常抱怨影片播放之流暢度不佳。網站營運者在不增加建置成本的前提下可進
行下列何種措施來改善此問題? 
使用不同的資料格式來儲存影片 加大網路頻寬 
提升伺服器 CPU 等級  更換較高等級之影像卡 
28 利用由左而右順序的數字資料:7, 34, 17, 19, 16, 10, 23, 2,來建立二元搜尋樹(binary search tree)。若是
用後序追蹤(postorder traversal)此樹,其輸出為何? 
2, 10, 16, 23, 19, 17, 34, 7 7, 2, 34, 17, 16, 10, 19, 23  
2, 7, 10, 16, 17, 19, 23, 34  2, 7, 17, 16, 10, 19, 23, 34