Chapter 16

Task 1

Table of data structures

TypeUse
VariableAn item holding a single value
ListA collection of fields of different types e.g. a 'row' in a database
RecordA structure with keys and values to look up, a bit like a dictionary
Hash TableA fixed number of values in one or more dimensions
TreeData organised into nodes; a root and then branching structures
QueueData kept in order, inserted at one end and removed at the other
ArrayA number of items with can easily be changed in length or value
FileA structure often containing a large number of lines