110年 - 110 學士後_醫學系︰計算機概論與程式設計#100246
試卷資訊
所屬科目:學士後西醫◆計算機概論與程式設計
選擇題 (30)
17. Consider the following instruction mix for a processor:
ALU operations: 40%, uses 4 cycles.
Branch operations: 30%, uses 4 cycles.
Memory references: 30%, uses 5 cycles.
The un-pipelined processor has a clock cycle time of 1 ns. The pipelined processor has a clock
cycle time of 1.2 ns. Suppose that we ignore any latency and hazards, and assume that the
pipelined processor has an ideal CPI (cycles per instruction) of 1. How much speedup can be
achieved when comparing the un-pipelined processor and the pipelined processor?
(A) 3.28 (B) 3.35 (C) 3.58 (D) 3.86 (E) 3.98
Assume we use preemptive SJF (Shortest-Job-First) scheduling. What is the average waiting
time?
(A) 10 (B) 12 (C) 14 (D) 16 (E) 18
(A)
(B)
(C)
(D)
(E)
(A) The result is a table of 7 records.
(B) There are 5 columns in the resulting table.
(C) Green appears in three records of the resulting table.
(D) Eight appears in two records of the resulting table.
(E) JOIN cannot be performed for these two tables.
(A) 2 (B) 3
(C) 4 (D) 5
(E) None of the above
(A) 1, 2, 6, 4, 5, 3, 7 (B) 1, 2, 4, 6, 5, 3, 7
(C) 1, 2, 4, 5, 6, 3, 7 (D) 1, 2, 4, 3, 7, 5, 6
(E) 1, 2, 4, 5, 3, 7, 6
When the code is executed, what is the final value of x?
(A) 20 (B) 24 (C) 28 (D) 32 (E) 36
(A) 36 (B) 39 (C) 93 (D) 63 (E) 96
(1) node[1].num = 0
Which one of the following statements is CORRECT?
(A) When a=8, b=5, c=6, then A is 81, B is 5.
(B) When a=8, b=5, c=6, then A is 81, B is 6.
(C) When a=8, b=5, c=6, then A is 17, B is 5.
(D) When a=8, b=5, c=6, then A is 17, B is 6.
(E) When a=8, b=5, c=6, then A is 16, B is 6.
is distribution for event i