AQA A Level · Computer Science 7517

Data structures and abstract data types: Practice Questions

5 multiple-choice questions marked as you go, and 4 written questions with worked solutions. All on Data structures and abstract data types.

9 questions17 marksFree, no account
Question 1
1 mark

Which of the following best defines the relationship between an Abstract Data Type (ADT) and a data structure according to the AQA specification?

Question 2
1 mark

A programmer is choosing between a static and a dynamic data structure. Which of the following is a specific disadvantage of using dynamic data structures?

Question 3
1 mark

A Dictionary ADT is used to store word frequencies from a document. Given the dictionary \( D = \{\text{'data'}: 5, \text{'structure'}: 2, \text{'type'}: 3\} \), what is the logical result of the operation Update(D, 'structure', 4)?

Question 4
1 mark

Which of the following is the most accurate definition of an Abstract Data Type (ADT) according to the AQA specification?

Question 5
1 mark

A programmer is considering using either a static or a dynamic data structure to manage a collection of data.

Which of the following is a characteristic advantage of dynamic data structures compared to static data structures?

Question 6
2 marks

A programmer needs to decide between using a static array or a dynamic linked list to implement a stack. What is a primary disadvantage of using a static data structure in terms of memory efficiency?

Write your answer out first, then check it against the worked solution.

Question 7
5 marks

When implementing a Stack ADT using a static array and a pointer, explain how Data Abstraction is achieved for the end-user of the Stack.

Write your answer out first, then check it against the worked solution.

Question 8
2 marks

In the context of Abstract Data Types (ADTs), what is the conceptual difference between a logical description of a queue and its implementation?

Write your answer out first, then check it against the worked solution.

Question 9
3 marks

A programmer is choosing between using a static array or a dynamic linked list to implement a Stack.

a. Define what is meant by a dynamic data structure in terms of memory allocation. (1 point)
b. State one advantage of using a static array for this implementation. (1 point)
c. State one disadvantage of using a static array when the maximum number of items is unknown. (1 point)

Write your answer out first, then check it against the worked solution.

* The content provided by thinka is generated by AI and may not always be accurate or up-to-date. Please use it as a supplementary resource and verify with official materials.

You've seen the model answer. Now get yours marked.

This page can show you how a good answer looks. It cannot tell you what your answer was missing. thinka marks your written work against the real mark scheme in about 15 seconds.

Want more questions like these? Get a fresh set on this topic, graded as you go.

Practice More