111 年 國立臺灣大學資訊管理學系碩士班《資訊科技概論》

📄 試題原卷 免費註冊後即可對照原始考卷 PDF免費註冊

第 1 題

Which of the following is wrong about OSI Model?
(A) layer 8 is Application
(B) layer 5 is Session
(C) layer 4 is Transport
(D) layer 2 is Data Link
(E) all of the above are correct (choose this one only if none of the above can be chosen).

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗對 OSI 模型各層級功能的理解。OSI 模型共有七層,分別是:實體層 (Physical Layer)、資料鏈結層 (Data Link Layer)、網路層 (Network Layer)、傳輸層 (Transport Layer)、階段層 (Session Layer)、表示層 (Presentation Layer)、應用層 (Application Layer)。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 2 題

Which of the following is the industry standard protocol for email sending?
(A) Simple Mail Transfer Protocol (SMTP)
(B) Internet Message Access Protocol (IMAP)
(C) Post Office Protocol
(D) Post Office Protocol 3 (POP3)
(E) none of the above.

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗對電子郵件相關協定的理解。

(A) Simple Mail Transfer Protocol (SMTP):是業界標準的電子郵件傳送協定,用於在電子郵件伺服器之間傳送郵件,以及從電子郵件用戶端傳送郵件到郵件伺服器。
(B) Internet Message Access Protocol (IMAP):主要用於從郵件伺服器接收和管理電子郵件。
(C) Post Office Protocol (POP):POP 的舊版本,已被 POP3 取代。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 3 題

Which of the following technique is used in data link layer for reliable and sequential
delivery of data packets while allowing multiple packets to be sent at a time to improve
efficiency?
(A) automatic repeat request protocol
(B) sliding window protocol
(C) request and acknowledgment protocol
(D) multicast
(E) none of the above.

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗對資料鏈結層(Data Link Layer)可靠傳輸技術的了解。

資料鏈結層的目標之一是提供可靠的資料傳輸,即使在不可靠的物理鏈路上。為了實現可靠且有效率的傳輸,需要有機制來處理封包的遺失、損壞和重複,並確保資料能夠依序送達。

(A) Automatic Repeat Request (ARQ) 是一個總稱,包含了一系列用於錯誤偵測與修正的協定,通常涉及重傳機制,是實現可靠性的基礎。
(B) Sliding Window Protocol(滑動視窗協定)是一種用於在傳輸層或資料鏈結層實現可靠、有序且高效傳輸的技術。它允許發送方在沒有收到接收方確認之前,可以同時發送多個封包(一個「視窗」大小的封包),大大提高了傳輸效率,同時也內建了對封包遺失和重複的處理機制(透過計時器和確認機制)。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 4 題

Which of the following is wrong about Dynamic Host Configuration Protocol (DHCP)?
(A) it is used on Internet Protocol (IP) networks
(B) it uses a client-server architecture
(C) it allows the automatic management of IP addresses
(D) it offers great benefit to mobile users as valid configuration parameters are automatically obtained from the new network
(E) all of the above are correct (choose this one only if none of the above can be chosen).

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗對 DHCP (Dynamic Host Configuration Protocol) 的理解。DHCP 是一個網路協定,用於自動為網路上的設備分配 IP 位址及其他網路組態參數。

(A) DHCP 是在 IP 網路(Internet Protocol networks)上運作的,為 IP 設備分配 IP 位址,這是正確的。
(B) DHCP 採用客戶端-伺服器(client-server)架構。DHCP 客戶端(通常是作業系統中的網路服務)向 DHCP 伺服器發送請求,伺服器則回應分配 IP 位址和組態資訊,這是正確的。
(C) DHCP 的主要功能就是自動管理 IP 位址的分配,避免手動設定的麻煩和 IP 位址衝突,這是正確的。
(D) 對於行動使用者(mobile users)來說,DHCP 提供了極大的便利。當設備連接到不同的網路時,DHCP 可以自動獲取新的網路組態參數(如 IP 位址、預設閘道、DNS 伺服器等),而無需手動設定,這對移動性很強的設備非常重要,這是正確的。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 5 題

Which of the following is wrong about virtualization technology?
(A) network virtualization divides one physical network into separate, independent virtual networks
(B) network virtualization can combine multiple physical networks to one virtual, software-based network
(C) CPU virtualization allows a single processor to act as if it was multiple individual CPUs
(D) CPU virtualization allows one to run multiple different operating systems on one machine
(E) all of the above are correct (choose this one only if none of the above can be chosen).

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題測試對於虛擬化技術(Virtualization Technology)的定義與應用範疇的理解,涵蓋網路虛擬化(Network Virtualization)與中央處理器虛擬化(CPU Virtualization)的核心功能。虛擬化的本質在於將底層的實體資源進行抽象化(Abstraction),使其能靈活地劃分、組合或模擬,從而提高資源的利用率、隔離性與管理彈性。

解題方法

透過逐一檢視各選項敘述是否符合虛擬化技術的基本特性,確認各敘述的正確性。若 (A)、(B)、(C)、(D) 四個選項的敘述均描述了虛擬化技術中客觀存在的應用場景或機制,則應根據題目要求「All of the above are correct」的條件選擇 (E)。

選項分析

(A) Network virtualization divides one physical network into separate, independent virtual networks

  • 正確。此為網路虛擬化的基本應用,例如使用 VLAN(Virtual Local Area Network)技術,在單一物理交換網路基礎上,將流量劃分為多個邏輯上獨立的廣播域,實現資源隔離。

(B) Network virtualization can combine multiple physical networks to one virtual, software-based network

  • 正確。例如 SD-WAN(Software-Defined Wide Area Network)或網路聚合技術,能將不同路徑或實體介面的網路整合為單一的邏輯網路,由軟體層進行統一管理與路由控制,簡化了網路架構。

(C) CPU virtualization allows a single processor to act as if it was multiple individual CPUs

  • 正確。
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 6 題

Which of the following is wrong about Virtual machines (VMs)?
(A) a VM is a compute resource that uses software instead of a physical computer to run programs and deploy apps
(B) when more than one VMs run on a physical host machine, each virtual machine runs its own operating system and functions separately from the other VMs
(C) benefits of VMs include easy provisioning and maintainability, and high availability
(D) a software called hypervisor sits between the VMs and the host and is responsible for allocating the computing resources of the host to VMs
(E) all of the above are correct (choose this one only if none of the above can be chosen).

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗對虛擬機器 (Virtual Machines, VMs) 的理解。

(A) 虛擬機器是一種計算資源,它透過軟體模擬來運行程式和部署應用程式,而不需要實體的獨立電腦。這是正確的。
(B) 在一個實體主機上運行多個虛擬機器時,每個虛擬機器都運行自己的獨立作業系統,並且彼此之間是隔離的,互不影響。這是正確的。
(C) 虛擬機器的優點包括易於配置(provisioning)、易於維護(maintainability)以及高可用性(high availability)。這是正確的。
(D) Hypervisor 是一種軟體(或韌體),它運行在實體主機(host)之上,負責管理和分配實體主機的硬體資源(如 CPU、記憶體、儲存空間)給虛擬機器。Hypervisor 扮演了虛擬機器和實體硬體之間的介面。這是正確的。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 7 題

____ is a unique identifier assigned to a network interface controller for use as a
network address in communications within a network segment. It is used in most IEEE 802
networking technologies, including Ethernet, Wi-Fi, and Bluetooth.
(A) globally unique identifier
(B) IP address
(C) media access control address
(D) transmission control address
(E) none of the above.

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗對網路位址類型的理解。

題目描述了一個「在網路通訊中,分配給網路介面控制器 (NIC) 的唯一識別碼,用作網路位址」,並指出它用於 IEEE 802 網路技術(如 Ethernet, Wi-Fi, Bluetooth)。

(A) Globally Unique Identifier (GUID) 是一個廣泛的唯一識別碼,不專門用於網路介面。
(B) IP address (網際網路協定位址) 是用於在網際網路上識別設備的邏輯位址,它通常是可變動的(動態分配)或需要手動設定,並且工作在網路層 (Network Layer)。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 8 題

Which of the following is wrong about packet switching?
(A) packet switching transmits data across digital networks by breaking it down into blocks
(B) in datagram packet switching, each packet has a header that includes the origin IP address, the destination IP address, the number of packets in the entire data file, and the sequence number
(C) in datagram packet switching, the packets of a file go through the same route
(D) in a virtual circuit, the connection appears to be a dedicated physical circuit
(E) all of the above are correct (choose this one only if none of the above can be chosen).

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

  • 封包交換 (packet switching):將資料切割成固定或變長的封包,每個封包獨立於網路中傳送,路由決策在每一個節點皆可重新選擇。
  • 資料報 (datagram) 封包交換:每個封包自行攜帶完整的位址資訊,路徑不保證一致;目的端依序號重組。
  • 虛擬電路 (virtual circuit):在連線建立階段預先分配一條邏輯路徑,之後的封包皆沿同一路徑傳送,使用者感受到類似專屬實體電路的服務。

解題方法

  1. 釐清每個選項描述的概念是否符合上述定義。
  2. 判斷敘述中的「Header 內容」是否屬於 IP(或網路層)標頭,以及「路徑」是否固定。
  3. 只要有任一敘述與標準定義不符,即為錯誤選項。

選項逐一分析

  • (A) packet switching transmits data across digital networks by breaking it down into blocks

    • 正確。封包交換的本質即是將資料切割成「封包」或「區塊」後傳送。
  • (B) in datagram packet switching, each packet has a header that includes the origin IP address, the destination IP address, the number of packets in the entire data file, and the sequence number

    • IP 標頭確實包含來源與目的 IP 位址。但「整個資料檔的封包總數」以及「序號」並非 IP 標頭的必備欄位,序號屬於傳輸層(如 TCP)或應用層協定的功能。若僅以純 IP 資料報為例,此敘述不符合標準規範。
    • 結論:錯誤(在嚴格的資料報模型下)
  • (C) in datagram packet switching, the packets of a file go through the same route

    • 資料報的路由是「獨立」的,每個封包在每一個節點皆可能選擇不同的下一跳。因此同一檔案的各封包不一定走相同路徑。
    • 結論:錯誤
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 9 題

____ is a network multiple access method in which carrier sensing is used, but nodes
attempt to avoid collisions by beginning transmission only after the channel is sensed to be "idle".

登入後即可作答並保存紀錄。

這一題的完整詳解

本題測驗電腦網路中多重存取控制協定(Multiple Access Protocols)的運作機制。

一、題幹核心關鍵特徵分析:

  1. Carrier Sensing(載波偵測):節點在傳送封包前,必須先偵測實體傳輸媒介(通道)是否處於忙碌狀態。
  2. Attempt to avoid collisions by beginning transmission only after the channel is sensed to be "idle"(僅在偵測到通道閒置時才開始傳輸以避免碰撞):這是 CSMA/CA(Carrier Sense Multiple Access with Collision Avoidance,載波偵測多重存取/碰撞避免)的核心定義與設計哲學。

二、CSMA 系列主要協定機制比較:

  • CSMA/CA(Collision Avoidance,碰撞避免):
    主要應用於無線區域網路(如 IEEE 802.11 Wi-Fi)。在無線傳輸環境中,由於硬體無法同時發送強訊號又靈敏接收碰撞微弱訊號(信號衰減嚴重且存在隱藏節點問題),因此無法有效進行傳輸中的碰撞偵測。CSMA/CA 採取預防策略:節點偵測通道閒置後,必須額外等待一段框間間隔(DIFS),再進入隨機退避計時(random backoff);
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 10 題

Which of the following is wrong about information security?
(A) in the CIA triad, C stands for Confidentiality
(B) in the CIA triad, I stands for Integrity
(C) in the CIA triad, A stands for Accessibility
(D) Confidentiality means that only authorized individuals/systems can view sensitive or classified information
(E) all of the above are correct (choose this one only if none of the above can be chosen).

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗對資訊安全 CIA 三要素的理解。CIA 三要素是資訊安全最基本、最重要的原則,分別是:

  • Confidentiality (機密性):確保資訊僅能被授權的個人或系統存取。
  • Integrity (完整性):確保資訊在儲存、傳輸過程中未被未經授權地修改、破壞或刪除,即資訊的準確性和完整性。
  • Availability (可用性):確保授權的用戶在需要時能夠存取資訊和系統。

(A) 在 CIA 三要素中,C 代表 Confidentiality(機密性)。這是正確的。
(B) 在 CIA 三要素中,I 代表 Integrity(完整性)。這是正確的。
(C) 在 CIA 三要素中,A 代表 Availability(可用性),而不是 Accessibility(可存取性)。Accessibility 是指系統或資訊是否容易被存取,但 CIA 強調的是「授權用戶」在「需要時」能存取,這與 Availability 的概念更為接近。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 11 題

In information security, ____ refers to the type of attacks when a communication
between two systems or people is intercepted by an unauthorized party. The person intercepting
attempts to either eavesdrop on the exchange or impersonate one of the authorized parties.
(A) third-party attack
(B) DNS Tunneling
(C) Phishing
(D) Zero-day exploit
(E) none of the above.

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題考查資訊安全領域中常見的攻擊行為定義。題目描述的攻擊情境包含兩個關鍵特徵:

  1. 攔截通訊:攻擊者介入兩方(使用者與系統,或兩位使用者)之間的正常通訊管道。
  2. 竊聽或冒充:攻擊者不僅竊取傳輸中的資訊(Eavesdropping),甚至能扮演其中一方以欺騙對象(Impersonation)。

此類攻擊在學術與業界標準定義中稱為中間人攻擊(Man-in-the-Middle Attack, MitM)。攻擊者在通訊雙方皆不知情的情況下,成為通訊路徑中的「中間節點」,進而掌控雙方交換的所有數據。

選項分析

  • (A) Third-party attack:
    此術語通常用於指涉供應鏈攻擊或依賴外部第三方服務所衍生的安全風險,並非「攔截通訊進行竊聽或冒充」的專業技術術語。雖然在語意上攻擊者可被視為「第三方」,但這不是該攻擊類型的正式名稱。

  • (B) DNS Tunneling:
    這是一種透過 DNS 協議進行數據傳輸的技術。攻擊者利用 DNS 查詢與回應的報文來封裝惡意指令或外洩數據,以繞過防火牆監控。其目的為隱蔽傳輸,而非題目所述的通訊攔截與冒充。

  • (C) Phishing:
    網路釣魚屬於社交工程攻擊,主要透過偽造郵件、訊息或網頁,引誘使用者輸入機敏資訊(如帳號密碼)。雖然目標同樣是欺騙使用者,但其機制是誘使使用者主動提供數據,而非攔截現有的即時通訊。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 12 題

Which of the following is wrong?
(A) RSA algorithm is an asymmetric cryptography algorithm
(B) RSA is based on the fact that it is difficult to factorize a large integer
(C) in a public-key cryptosystem, the encryption key is private
(D) RSA is not meant to be used to directly encrypt user data.
(E) all of the above are correct (choose this one only if none of the above can be chosen).

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗對 RSA 演算法和公鑰密碼學的理解。

(A) RSA 演算法是一種非對稱式加密(asymmetric cryptography)演算法,它使用一對金鑰:一個公開金鑰用於加密,一個私密金鑰用於解密。這是正確的。
(B) RSA 的安全性基於大數質因數分解的困難性。將兩個大質數相乘很容易,但要將相乘後的結果質因數分解成原始的兩個質數則非常困難。這是正確的。
(C) 在公鑰密碼系統(public-key cryptosystem)中,加密金鑰是公開的(public key),而解密金鑰是私密的(private key)。題目說「encryption key is private」,這與公鑰密碼學的定義相反。公鑰用於加密,私鑰用於解密。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 13 題

Which of the following is wrong in the context of transaction processing?
(A) A in the acronym ACID refers to atomicity
(B) C in the acronym ACID refers to consistency
(C) I in the acronym ACID refers to integrity
(D) D in the acronym ACID refers to durability
(E) all of the above are correct (choose this one only if none of the above can be chosen).

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗對資料庫交易處理 ACID 特性的理解。ACID 是資料庫交易(transaction)應具備的四個特性:

  • Atomicity (原子性):交易是不可分割的工作單元,要麼全部執行成功,要麼全部不執行。
  • Consistency (一致性):交易執行前後,資料庫從一個有效狀態轉換到另一個有效狀態。
  • Isolation (隔離性):並發執行的交易之間互不干擾,每個交易都感覺像是獨立執行的。
  • Durability (持久性):一旦交易被提交(commit),其結果就永久保存在資料庫中,即使系統發生故障也不會丟失。

(A) A 在 ACID 中指的是 Atomicity(原子性)。這是正確的。
(B) C 在 ACID 中指的是 Consistency(一致性)。這是正確的。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 14 題

Which of the following is wrong about database normalization?
(A) to satisfy 1st normal form, each column of a table must have a single value
(B) in 2nd normal form, all non-key attributes are fully functional dependent on the primary key
(C) 3rd normal form is used to reduce the data duplication
(D) 3rd normal form does not allow transitive dependency for non-prime attributes
(E) all of the above are correct (choose this one only if none of the above can be chosen).

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗對資料庫正規化(Normalization)的理解,特別是第一、二、三正規化形式。

  • 第一正規化形式 (1NF):要求表的每一個欄位都必須是原子值(atomic value),即不可再分割。也就是說,一個欄位不能包含多個值,也不能是重複的欄位群組。
    • (A) 敘述「to satisfy 1st normal form, each column of a table must have a single value」是正確的。
  • 第二正規化形式 (2NF):要求表必須是 1NF,並且所有非主鍵屬性(non-key attributes)必須完全函數依賴於主鍵(primary key)。這意味著如果主鍵是複合鍵,則非主鍵屬性不能只依賴於主鍵的一部分。
    • (B) 敘述「in 2nd normal form, all non-key attributes are fully functional dependent on the primary key」是正確的。
  • 第三正規化形式 (3NF):要求表必須是 2NF,並且所有非主鍵屬性不能傳遞依賴(transitively dependent)於主鍵。也就是說,非主鍵屬性不能依賴於其他非主鍵屬性。
    • (C) 3NF 的目的是進一步減少資料重複和提高資料完整性,所以「3rd normal form is used to reduce the data duplication」是正確的。
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 15 題

____ refers to the mechanism used in DBMS to allow removal of all the previous
transaction logs from the system and permanently stored them in the storage disk
(A) backlogging
(B) checkpoint
(C) serialization
(D) two-phase commit
(E) none of the above.

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗對資料庫管理系統 (DBMS) 中交易日誌(transaction logs)處理機制的理解。

交易日誌記錄了資料庫的修改操作,用於在系統故障時進行恢復(rollback 或 redo)。為了防止日誌檔案無限增長,需要定期將日誌中的資訊寫入永久儲存。

(A) Backlogging:這個術語通常指延遲處理或累積工作。在資料庫日誌處理的上下文中,它可能暗示著將日誌記錄累積起來,但並非直接指「移除日誌並永久儲存」。
(B) Checkpoint(檢查點):檢查點是 DBMS 在執行過程中記錄的一個狀態,它標記了一個時間點,在此之後的交易日誌可以被安全地清除。當執行檢查點時,DBMS 會將緩衝區中的資料寫入磁碟,並記錄下檢查點的位置。之後,就可以安全地刪除該檢查點之前的所有日誌記錄,因為即使發生故障,從檢查點開始也可以恢復。這與題目描述的「移除所有先前的交易日誌並永久儲存」的機制非常吻合。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 16 題

Which of the following is wrong?
(A) a process is an execution of a specific program
(B) a process can have multiple threads
(C) compared to threads, processes are more lightweight
(D) in terms of memory sharing, processes are isolated
(E) all of the above are correct (choose this one only if none of the above can be chosen).

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗對處理序(Process)和執行緒(Thread)之間區別的理解。

(A) 處理序(Process)可以被定義為一個正在執行的程式的實例。這是正確的。
(B) 一個處理序可以包含多個執行緒(threads)。執行緒是處理序內部的執行單元,它們共享處理序的資源,如記憶體空間。這是正確的。
(C) 執行緒(threads)比處理序(processes)更輕量級(lightweight)。創建和切換執行緒的開銷比處理序小,因為執行緒共享處理序的資源,而處理序有獨立的記憶體空間和資源。因此,「compared to threads, processes are more lightweight」是錯誤的。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 17 題

In operating system, ____ refers to the situation in which two or more processes
continually repeat the same interaction in response to changes in the other processes without doing
any useful work?
(A) deadlock
(B) livelock
(C) starvation
(D) busy waiting
(E) none of the above.

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗對作業系統中進程間通訊和同步問題的理解,特別是 Livelock 的概念。

  • Deadlock (死結):兩個或多個處理序都持有資源,並等待其他處理序釋放它們所需要的資源,導致所有處理序都無法繼續執行。
  • Livelock (活鎖):與死結不同,處理序雖然沒有被阻塞,但它們不斷地改變自己的狀態,以回應其他處理序的改變,卻始終無法達成有用的工作。它們看起來在「活躍」地執行,但實際上沒有進展。這就像兩個紳士在走廊相遇,都為了禮貌而向同一側避讓,結果兩人不斷地重複向同一側移動,而無法通過。
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 18 題

Which of the following is a typical objective for CPU scheduling in operating systems?
(A) max CPU utilization
(B) max throughput
(C) min waiting time
(D) fair allocation of CPU
(E) all of the above are typical objectives.

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗對作業系統 CPU 排程(CPU Scheduling)目標的理解。CPU 排程的目標是在多個進程之間公平有效地分配 CPU 時間,以達到最佳的系統效能。

CPU 排程的典型目標包括:

  • 最大化 CPU 利用率 (Max CPU utilization):盡量讓 CPU 保持忙碌,減少閒置時間。
  • 最大化吞吐量 (Max throughput):在單位時間內完成的進程數量。
  • 最小化週轉時間 (Min turnaround time):進程從提交到完成所花費的總時間。
  • 最小化等待時間 (Min waiting time):進程在就緒佇列中等待 CPU 的時間。
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 19 題

Which of the following CPU scheduling algorithm is starvation-free?
(A) Shortest-Job-First
(B) Priority Scheduling
(C) Round Robin
(D) all of the above
(E) none of the above.

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗對 CPU 排程演算法是否會導致飢餓(starvation)的理解。

  • Shortest-Job-First (SJF):如果不斷有短作業進入系統,長作業可能永遠無法獲得 CPU,導致飢餓。因此,SJF 可能會導致飢餓。
  • Priority Scheduling (優先權排程):如果低優先權的作業不斷進入系統,高優先權的作業會一直被優先執行,導致低優先權的作業可能永遠無法獲得 CPU,發生飢餓。
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 20 題

In operating systems, ____ refers to the technique for mediating between a computer
application and a slow peripheral, such as a printer, that allows programs to "hand off" work to be
done by the peripheral and then proceed to other tasks.
(A) buffering
(B) spooling
(C) preemptive scheduling
(D) non-preemptive scheduling
(E) heap.

登入後即可作答並保存紀錄。

這一題的完整詳解

本題測驗作業系統中處理週邊設備 I/O 協調技術之核心概念。

一、題幹分析:
題幹描述:「在作業系統中,____ 係指用於協調電腦應用程式與慢速週邊設備(如印表機)之間的技術,允許程式將欲處理的工作『移交(hand off)』給週邊設備,隨後程式即可繼續執行其他工作。」

二、各選項分析與專有名詞釋義:
(A) Buffering(緩衝):
指在記憶體中配置暫存區,用於平衡速度不一致的裝置或行程間的資料流。緩衝雖可暫存資料,但通常是短暫且位於主記憶體內的區塊,未提供完整的「排程佇列與解偶移交工作」架構。

(B) Spooling(Simultaneous Peripheral Operations On-Line,同步周邊線上作業/假脫機):
專門用於管理慢速獨佔性輸出入設備(如印表機)的技術。當應用程式送出列印需求時,系統將列印資料迅速寫入硬碟的指定暫存區域(spool directory / spool file),此移交過程極為迅速,應用程式不必耗時等候慢速印表機逐行列印完畢,可立即返回並繼續處理其他工作。隨後作業系統的背景列印常駐程式(spooler)會依序從磁碟讀取任務並傳送至印表機輸出。完全契合題幹描述。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 21 題

Which of the following is wrong about ER model?
(A) it is a high-level data model
(B) an entity may be any object, class, person or place
(C) attribute is used to describe the property of an entity
(D) diamond shape is used to represent attribute
(E) all of the above are correct (choose this one only if none of the above can be chosen).

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗對實體-關聯模型(Entity-Relationship Model, ER Model)的理解。ER 模型是一種概念性的資料模型,用於描述資料庫中的實體、屬性及實體之間的關聯。

(A) ER 模型是一個高階的資料模型,它關注的是資料的邏輯結構和概念,而非具體的儲存細節。這是正確的。
(B) 在 ER 模型中,實體(entity)可以代表現實世界中的任何事物,包括物件、類別、人物、地點等。這是正確的。
(C) 屬性(attribute)用於描述實體的特徵或性質。這是正確的。
(D) 在 ER 圖中,通常使用矩形(rectangle)來表示實體(entity),而使用橢圓形(oval)來表示屬性(attribute)。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 22 題

____ refers to the part of an operating system that loads and links the shared libraries
needed by an executable when it is executed at run time, by copying the content of libraries from
persistent storage to RAM, filling jump tables and relocating pointers.
(A) code generation
(B) code loader
(C) assembler
(D) dynamic linker
(E) none of the above.

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗對作業系統中程式載入與連結過程的理解。

題目描述的功能是:在程式執行時(run time),載入並連結可執行檔所需的共享函式庫(shared libraries)。這個過程包括從持久儲存(如硬碟)複製函式庫內容到 RAM,填充跳轉表(jump tables),以及重新定位指標(relocating pointers)。

(A) Code generation(程式碼產生):通常是指編譯器將原始碼轉換成機器碼的過程。
(B) Code loader(程式載入器):這是作業系統的一部分,負責將可執行檔從磁碟載入到記憶體中,並準備執行。它處理記憶體分配、載入程式碼和資料段,並啟動程式。
(C) Assembler(組合器):將組合語言(assembly language)翻譯成機器碼。
(D) Dynamic linker(動態連結器):在程式執行時,負責將程式與其所需的共享函式庫(shared libraries)進行連結。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 23 題

Which of the following is wrong about "metaverse"?
(A) it envisions a future of social connection in a 2D virtual world
(B) VR is a key technology in metaverse
(C) Facebook changed its name to "meta" to usher in the metaverse
(D) blockchain is a key technology in metaverse to offer digital proof of ownership for assets in the metaverse
(E) all of the above are correct (choose this one only if none of the above can be chosen).

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗對「元宇宙」(Metaverse)概念的理解。元宇宙是一個虛擬的、持久的、互聯的空間,人們可以在其中進行社交、工作、娛樂等活動。

(A) 元宇宙通常被設想為一個 3D 虛擬世界,而不是 2D。雖然 2D 虛擬世界(如 Second Life 的早期版本)可以被視為元宇宙的雛形,但現代對元宇宙的構想更強調沉浸式的 3D 體驗。因此,「in a 2D virtual world」的說法是錯誤的。
(B) VR (Virtual Reality, 虛擬實境) 和 AR (Augmented Reality, 擴增實境) 被認為是進入和體驗元宇宙的關鍵技術,提供沉浸感。這是正確的。
(C) Facebook 在 2021 年將公司名稱更改為 Meta Platforms,以表明其對構建元宇宙的承諾和戰略重點。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 24 題

Which of the following is wrong about non-fungible token (NFT)?
(A) NFTs can be associated with digital files such as photos, videos, and audio to show ownerships
(B) NFT is a unique and non-interchangeable unit of data stored on a blockchain
(C) two copies of a digital file can be associated with two different NFTs
(D) assets in the metaverse case be traded as NFTs
(E) all of the above are correct (choose this one only if none of the above can be chosen).

登入後即可作答並保存紀錄。

這一題的完整詳解

此題考驗對非同質化代幣(Non-Fungible Token, NFT)的理解。

(A) NFT 可以與數位檔案(如圖片、影片、音訊)連結,用來證明對該數位檔案的擁有權。這是正確的。
(B) NFT 的核心特徵是其獨一無二(unique)且不可互換(non-interchangeable)的數據單位,這些數據記錄在區塊鏈上。這是正確的。
(C) 雖然兩個數位檔案是完全相同的副本,但它們可以被鑄造成(minted)兩個不同的 NFT,每個 NFT 擁有獨立的識別碼和所有權記錄。這意味著「two copies of a digital file can be associated with two different NFTs」是可能的,因為 NFT 的價值體現在其獨特的識別碼和所有權記錄上,而不是檔案本身的內容。這是正確的。
(D) 在元宇宙中,虛擬資產(如虛擬土地、虛擬物品、頭像等)通常以 NFT 的形式進行交易,以確保其所有權和稀缺性。這是正確的。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 (a) 題15 分

(a) (15 points) Write the insertStudent() function that inserts a student's record
into the hash table. Here, we assume the inserted student is never duplicated.

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題考查雜湊表(hash table)的插入操作。假設:

  • 每位學生以 id 作為唯一鍵值。
  • 使用雜湊函數 h(id)h(id) 將學生對應至表格索引。
  • 採用「分離鏈結法」(separate chaining)處理碰撞。
  • 每個表格位置存放一條 linked list。
  • 題目已保證學生不會重複,因此不需額外檢查相同的 id。

雜湊函數的基本公式為:

index=h(student.id)index = h(student.id)

為避免索引超出表格範圍,常見雜湊函數為:

h(id)=id mod TABLE_SIZEh(id) = id \bmod TABLE\_SIZE

若不同學生的鍵值經雜湊後得到相同索引,即發生碰撞,應將新節點接到該索引的鏈結串列中。

解題方法

插入流程如下:

  1. 配置一個新的學生節點。
  2. 將學生資料複製至新節點。
  3. 以學生的 id 計算雜湊索引。
  4. 將新節點插入該 bucket 的鏈結串列。
  5. 更新表格指標,使新節點成為該串列的第一個節點。

採用頭插法時,不需走訪整條鏈結串列,因此插入本身只需固定次數的指標操作。

參考程式碼

以下以 C 語言、分離鏈結法及頭插法實作:

#define TABLE_SIZE 101

typedef struct Student {
    int id;
    char name[50];
    struct Student *next;
} Student;

Student *hashTable[TABLE_SIZE];

int hashFunction(int id) {
    return id % TABLE_SIZE;
}

void insertStudent(Student student) {
    int index = hashFunction(student.id);

    Student *newNode = malloc(sizeof(Student));

    newNode->id = student.id;
    strcpy(newNode->name, student.name);

    newNode->next = hashTable[index];
    hashTable[index] = newNode;
}

若函式參數本身就是指標,則可寫成:

void insertStudent(Student *student) {
    int index = hashFunction(student->id);

    Student *newNode = malloc(sizeof(Student));

    newNode->id = student->id;
    strcpy(newNode->name, student->name);

    newNode->next = hashTable[index];
    hashTable[index] = newNode;
}

指標操作說明

假設原本:

示意圖

建立新節點 N 後:

newNode->next = hashTable[index];
hashTable[index] = newNode;

結果為:

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 (b) 題15 分

(b) (15 points) Write the retrieveName() function that returns the name of a
student given the student's ID. Note that the function returns an empty string if no
stored student matches the given ID.

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題考查:

  1. 使用學生 ID 進行資料搜尋。
  2. 逐筆比對學生資料中的 id 欄位。
  3. 找到符合的學生後回傳其 name。
  4. 搜尋完整份資料仍找不到時,依題意回傳空字串 ""。

題目未附前一小題所定義的資料結構,以下假設學生資料儲存在 students 容器中,每筆資料具有 id 與 name 欄位。

解題方法

未指定學生資料已依 ID 排序,因此採用循序搜尋(linear search):

  1. 從第一筆學生資料開始走訪。
  2. 將每筆學生的 ID 與輸入的 studentID 比較。
  3. 若兩者相同,立即回傳該筆學生姓名。
  4. 若所有資料都走訪完仍沒有符合者,回傳空字串。

參考程式碼

以下以 C++ 為例:

string retrieveName(int studentID) {
    for (const Student& student : students) {
        if (student.id == studentID) {
            return student.name;
        }
    }

    return "";
}

若學生資料是以陣列搭配資料筆數儲存,寫法如下:

string retrieveName(int studentID) {
    for (int i = 0; i < studentCount; i++) {
        if (students[i].id == studentID) {
            return students[i].name;
        }
    }

    return "";
}

函式必須在找到第一筆符合資料時立即 return,避免不必要的搜尋;搜尋結束後的 return "" 則是處理「沒有學生 ID 符合」的情況。

複雜度分析

設學生資料筆數為 nn:

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 (c) 題10 分

(c) (10 points) Write the hashIndex() function that generates the location (table
index) by taking the modulo of the last three student ID digits. For example, the
location of student ID 11725935 is 935%101 = 26.

登入後即可作答並保存紀錄。

這一題的完整詳解

此題要求實作一個雜湊函數 hashIndex(),該函數根據學生 ID 的最後三位數字取模來計算雜湊表的索引。

核心概念:

  1. 雜湊函數 (Hash Function):將輸入值(在此是 studentID)映射到雜湊表的索引範圍內。
  2. 取模運算 (Modulo Operation):用於將一個數映射到一個固定的範圍。
  3. 提取最後三位數字:需要一種方法從 studentID 中提取出最後的三位數字。

實作步驟:

  1. 從傳入的 sID (Student ID) 中提取最後三位數字。這可以透過取模 1000 來實現:lastThreeDigits = sID % 1000。
  2. 將提取出的最後三位數字對雜湊表的大小 HASH_TABLE_SIZE 取模,以得到最終的索引。題目中 HASH_TABLE_SIZE 被定義為 101。因此,index = lastThreeDigits % HASH_TABLE_SIZE。
  3. 返回計算出的索引 index。

C++ 程式碼實作:

int StudentHashTable::hashIndex(int sID) {
    // 1. 提取 studentID 的最後三位數字
    // 例如: 11725935 % 1000 = 935
    int lastThreeDigits = sID % 1000;

    // 2. 將最後三位數字對雜湊表大小取模
    // 例如: 935 % 101 = 26
    int index = lastThreeDigits % HASH_TABLE_SIZE;

    // 3. 返回計算出的索引
    return index;
}

說明:

  • sID % 1000:這個運算會得到 sID 除以 1000 的餘數,這恰好就是 sID 的最後三位數字。
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

其他考古題