"基本程式語言 02" 修訂間的差異
出自 陳富國維基館
行 5: | 行 5: | ||
− | + | QUESTION 1 | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | Given the code in the exhibit. What is the result? | ||
+ | A. Compilation fails | ||
+ | B. An exception is thrown at runtime. | ||
+ | C. An instance of Forest is serialized. | ||
+ | D. An instance of Forest and an instance of Tree are both serialized. | ||
+ | </br> | ||
<div class="toccolours mw-collapsible mw-collapsed"> | <div class="toccolours mw-collapsible mw-collapsed"> | ||
<span style="font-size:medium;">解答</span> | <span style="font-size:medium;">解答</span> |
於 2013年3月26日 (二) 06:51 的修訂
下列片斷程式執行後,i, j與k的值各為何?
QUESTION 1
Given the code in the exhibit. What is the result?
A. Compilation fails
B. An exception is thrown at runtime.
C. An instance of Forest is serialized.
D. An instance of Forest and an instance of Tree are both serialized.
</br>
解答
Ans:
解說:
類似題型
題目
解說:
程式觀念考題 | |||||
---|---|---|---|---|---|
基本程式語言 | 決策程式語法 | 迴圈/重複敘述 | 副程式呼叫與遞迴 | 物件導向-類別與物件 | 其他 |
|
06 . 07 . 08 . 09 . 10 11 . 12 . 13 . 14 . 15 |
06 . 07 . 08 . 09 . 10 11 . 12 . 13 . 14 . 15 |
06 . 07 . 08 . 09 . 10 11 . 12 . 13 . 14 . 15 |
06 . 07 . 08 . 09 . 10 11 . 12 . 13 . 14 . 15 |
06 . 07 . 08 . 09 . 10 11 . 12 . 13 . 14 . 15 |