Cambridge International A Level · Computer Science (9618)

Data Types and Structures:练习题

5 道选择题即时批改,另有 5 道文字题附完整解题步骤,全部围绕「Data Types and Structures」。

10 道题目24 免费,无需注册
第 1 题
1

In the context of 1D arrays, which term refers to the index value of the very first element in the array?

第 2 题
1

Which statement best describes an Abstract Data Type (ADT)?

第 3 题
1

A linked list is implemented using a 1D array of records, where each record contains a Data field and a NextPointer. If FreePointer points to the first available node in the list of empty nodes, which sequence of pseudocode steps is required to correctly remove the first node from the Free List to prepare it for new data storage?

第 4 题
1

In the context of Data Types and Structures, what term is used to describe an individual data item within a record structure, such as ISBN or Price in a book database?

第 5 题
1

A circular queue is implemented in Data Types and Structures using a 1D array of size 10 (with indices 1 to 10). Currently, FrontPointer = 8 and RearPointer = 10. If one more item is added to the queue and then two items are subsequently removed, what will be the new values for FrontPointer and RearPointer? (Assume FrontPointer points to the first item and RearPointer points to the last item added).

第 6 题
2

Explain why a record structure is more appropriate than a 1D array for storing a student's name, date of birth, and enrollment status.

先自己写一遍答案,再对照解题步骤。

第 7 题
3

In the context of hashing algorithms for file access, define the term collision and identify one method used to resolve it.

先自己写一遍答案,再对照解题步骤。

第 8 题
5

When implementing a Queue as a static 1D array of size \( n \), explain why a circular queue implementation is more efficient than a linear implementation that shifts elements forward after every dequeue operation.

先自己写一遍答案,再对照解题步骤。

第 9 题
4

Abstract Data Types (ADTs) allow programmers to manage data based on behavior rather than implementation.
a) Define a Stack and describe how the Stack Pointer changes during PUSH and POP operations.
b) Explain why a Linked List is considered a dynamic data structure compared to a standard 1D array.
c) Identify one specific scenario where a Queue would be more appropriate than a Stack.

先自己写一遍答案,再对照解题步骤。

第 10 题
5

A 2D array named SubjectMarks is used to store the results of 30 students in 5 different subjects. The rows represent students (1 to 30) and the columns represent subjects (1 to 5).

a) Explain the difference between the lower bound and the upper bound of an array dimension.

b) Write a pseudocode algorithm that calculates the average mark for Student 15 across all 5 subjects and outputs the result.

c) The school wants to store the name of each student alongside their marks. Justify why a 2D array is not suitable for this purpose and identify a more appropriate data structure that combines different data types.

先自己写一遍答案,再对照解题步骤。

* thinka提供的内容由AI生成,可能并非总是准确或最新。请将其用作辅助资源,并与官方材料进行核实。

你已看过标准答案。现在轮到你的答案被批改。

这一页能告诉你好答案是什么样子,却无法指出你的答案缺了什么。thinka 按真实评分标准批改你的文字答案,约 15 秒完成。

想多做几道同类题目?立即开始练习这个课题,边做边批改。

立即练习