Oxford AQA International A-level · Computer Science (9645)

陣列與串列:練習題

5 條多項選擇題即時批改,另有 5 條文字題附完整解題步驟,全部圍繞「陣列與串列」。

10 條題目27 免費,無需登記
第 1 題
1

Which of the following describes a significant disadvantage of using a dynamic list instead of a static array when the total number of elements to be stored is fixed and known at compile time?

第 2 題
1

A two-dimensional array \( \text{Grid}[5][10] \) is stored in row-major order in memory. The base address of the array is \( 1000 \) and each integer element occupies \( 4 \) bytes. Using 0-based indexing, what is the memory address of the element located at \( \text{Grid}[2][3] \)?

第 3 題
1

When comparing a static array to a dynamic list, which of the following is a characteristic specific to a static array?

第 4 題
1

Consider a dynamic list structure implemented using an underlying array. If the list is currently at its maximum capacity, what is the worst-case time complexity for a single append operation?

第 5 題
1

When comparing a two-dimensional static array to a list of lists (as implemented in Python), which statement accurately describes their physical storage in memory?

第 6 題
3

Explain one reason why a dynamic list might be less memory-efficient than a static array when storing the same number of data items.

先自己寫一次答案,再對照解題步驟。

第 7 題
6

Describe the sequence of actions that occurs at the memory level when an element is appended to a dynamic array that has reached its maximum current capacity.

先自己寫一次答案,再對照解題步驟。

第 8 題
3

In a two-dimensional array or a list of lists, describe how a specific element is located by the computer during an access operation.

先自己寫一次答案,再對照解題步驟。

第 9 題
4

A programmer is working with a one-dimensional static array named Scores containing 6 elements.

(a) Explain the difference between the index of an element and its data content.
(b) Describe the logic required to reverse the elements within the array Scores without using a second array. Identify the role of a temporary variable in this process.

先自己寫一次答案,再對照解題步驟。

第 10 題
6

A two-dimensional array \( \text{Data}[6][8] \) is stored in column-major order in memory, starting at the base address of \( 5000 \). Each element in the array is a real data type, which occupies \( 8 \) bytes of storage.

(a) Calculate the memory address of the element located at \( \text{Data}[3][5] \). Assume 0-based indexing is used and show your working.
(b) Explain why the calculation for column-major order differs from the calculation for row-major order.

先自己寫一次答案,再對照解題步驟。

* thinka提供的內容由AI生成,可能並非總是準確或最新。請將其用作輔助資源,並與官方材料進行核實。

你已看過標準答案,接下來輪到批改你的答案。

這一頁可以告訴你好答案的樣子,卻無法指出你的答案欠缺什麼。thinka 按真實評分準則批改你的文字答案,約 15 秒完成。

想多做幾條同類題目?立即開始練習呢個課題,即做即批改。

立即練習
陣列與串列 練習題及答案 | Computer Science (9645) Oxford AQA International A-level