In the context of 1D arrays, which term refers to the index value of the very first element in the array?
Cambridge International A Level · Computer Science (9618)
Data Types and Structures:練習題
5 條多項選擇題即時批改,另有 5 條文字題附完整解題步驟,全部圍繞「Data Types and Structures」。
Which statement best describes an Abstract Data Type (ADT)?
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?
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?
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).
Explain why a record structure is more appropriate than a 1D array for storing a student's name, date of birth, and enrollment status.
先自己寫一次答案,再對照解題步驟。
In the context of hashing algorithms for file access, define the term collision and identify one method used to resolve it.
先自己寫一次答案,再對照解題步驟。
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.
先自己寫一次答案,再對照解題步驟。
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.
先自己寫一次答案,再對照解題步驟。
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生成,可能並非總是準確或最新。請將其用作輔助資源,並與官方材料進行核實。
想多做幾條同類題目?立即開始練習呢個課題,即做即批改。
立即練習