100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

AQA A Level Computer Science Unit 7 Data Structures Definitions Exam With Correct Answers

Rating
-
Sold
-
Pages
7
Grade
A+
Uploaded on
25-04-2025
Written in
2024/2025

Abstract data type - correct answers A logical description of how the data is viewed and the operations that can be performed upon it. Queue - correct answers A first in first out (FIFO) data structure where elements can only be added to the end and can only be retrieved from the front. The order of items is determined by the order they were inserted in. Operations on a queue - correct answers enQueue, deQueue, isEmpty, ifFull Dynamic data structure - correct answers A collection of data in memory that has the ability to grow or shrink in size with the aid of the heap, a portion of memory from which space is allocated or de-allocated as required. Static data structure - correct answers A data structure that is fixed in size and cannot increase in size or free up memory while the program is running. E.g. an array. A disadvantage of using an array to implement a data structure is that the size has to be decided in advance and cannot be increased once it is full. Additionally, memory that has been allocated cannot be deallocated even if it is unused. An advantage is that no pointers or other data about the structure needs to be stored. Linear queue - correct answers Either 1. As items leave the queue all other items move up one space so that the front of the queue is always the first element. This may require a lot of processing for long queues.

Show more Read less
Institution
AQA A Level Computer Science Unit 7 Data Structure
Module
AQA A Level Computer Science Unit 7 Data Structure









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
AQA A Level Computer Science Unit 7 Data Structure
Module
AQA A Level Computer Science Unit 7 Data Structure

Document information

Uploaded on
April 25, 2025
Number of pages
7
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

AQA A Level Computer Science Unit 7
Data Structures Definitions Exam With
Correct Answers

Abstract data type - correct answers ✔✔A logical description of how the data is viewed and the
operations that can be performed upon it.



Queue - correct answers ✔✔A first in first out (FIFO) data structure where elements can only be
added to the end and can only be retrieved from the front. The order of items is determined by
the order they were inserted in.



Operations on a queue - correct answers ✔✔enQueue, deQueue, isEmpty, ifFull



Dynamic data structure - correct answers ✔✔A collection of data in memory that has the ability
to grow or shrink in size with the aid of the heap, a portion of memory from which space is
allocated or de-allocated as required.



Static data structure - correct answers ✔✔A data structure that is fixed in size and cannot
increase in size or free up memory while the program is running. E.g. an array. A disadvantage of
using an array to implement a data structure is that the size has to be decided in advance and
cannot be increased once it is full. Additionally, memory that has been allocated cannot be
deallocated even if it is unused. An advantage is that no pointers or other data about the
structure needs to be stored.



Linear queue - correct answers ✔✔Either

1. As items leave the queue all other items move up one space so that the front of the queue is
always the first element. This may require a lot of processing for long queues.

2. Pointers are used to keep track of the front and rear of the queue. A variable with the size of
the array is needed as well as a variable with the number of items currently in the queue. An

, issue is that as items are removed space is created at the front of the queue which cannot be
filled, and eventually the rear pointer points to the last element of the data structure and no
more items can be added.



Circular queue - correct answers ✔✔Solves the limitations of a linear queue by having the rear
pointer wrap around to 0 when it reaches the end of the array. This requires extra effort from
the programmer and is less flexible than dynamic data structures if the maximum number of
items is not known in advance.



Priority queue - correct answers ✔✔A queue in which the logical order of items is determined
by their priority, with higher priority items at the front and lowest priority items at the back. A
new item is therefore able to join at the front or the middle, not just the rear.



List - correct answers ✔✔An abstract data type consisting of a number of items in which the
same item may occur more than once. The list is sequenced so that we can refer to the first,
second, third... item and wen can also refer to the last element of the list.



Operations on a list - correct answers ✔✔isEmpty(), append(item), remove(item), search(item),
length(), index(item), insert(pos, item), pop(), pop(pos)



List implementation - correct answers ✔✔Using an array - items are shifted forwards and
backwards as elements are inserted and removed, max size must be declared in advance

Using a linked list - each item is stored alongside a pointer to the next item. The pointers are
adjusted when items are inserted and deleted.



Stack - correct answers ✔✔A last in first out (LIFO) data structure where items are added to the
top and removed from the top.



Stack implementation - correct answers ✔✔Using an array - a pointer to the top of the stack
and the size of the array are stored. Items are removed from where the pointer points,
decrementing it, and added in the slot above, incrementing the pointer.

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
QUILLSKY Yale University
Follow You need to be logged in order to follow users or courses
Sold
510
Member since
2 year
Number of followers
275
Documents
13973
Last sold
1 day ago
,STUDY GUIDES,TESTBANKS AND QUALITY EXAMS IS THE KEY TO STUDENTS CAREER EXCELLENCE!!!

On this page, you find all documents, package deals, and flashcards offered by seller MAXGRADES WELCOME TO MAXGRADES ALL THE BEST !!!!!!

3.5

128 reviews

5
48
4
23
3
29
2
6
1
22

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions