Note that your final mark will not be saved in the system.
10. Data Structures GapFill
You must fill all the gaps before clicking ‘Check Answers!’
A data structure is a means by which data is stored in an organised way. While variables are sometimes described as data structures, the term tends to apply to a single structure that can store multiple data items. A(n) is one such data structure, in which a fixed number of spaces, called , are created . Each one of these spaces is addressable via a(n) , the first being and the last being .
An alternative to this data structure is a list, which is made up of a series of , each comprising two components. The data itself is one of these, and the other is a to the next item in the list. A(n) is an example of a last-in-first-out data structure, in which only the most recently added data item is accessible. Data items can be onto the structure or from it, the latter of which entails removing it. A related data structure is a(n) , which is an example of a first-in-first-out data structure.
A(n) is a specific type of , in which each item of data points to other pieces of data. This is a non-linear, hierarchical data structure, with the conceptually at the top.