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

Arrays and lists:練習問題

その場で採点される選択問題 5 問と、解説つきの記述問題 5 問。すべて「Arrays and lists」からの出題です。

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 秒で採点します。

同じような問題をもっと解きたい?このトピックの新しい問題を、解きながら採点。

練習を始める