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により生成されているため、内容が正確でない場合があります。補助教材としてご使用いただき、公式の教材と合わせてご確認ください。
模範解答は見ました。次はあなたの答案を採点します。
このページは良い答案の形を示せますが、あなたの答案に何が足りないかは教えられません。thinka は実際の採点基準に沿って記述答案を約 15 秒で採点します。
同じような問題をもっと解きたい?このトピックの新しい問題を、解きながら採点。
練習を始める