Data structures Flashcards
how many data types can arrays store
1
can arrays change in size once declared
no
can records contain many data types
yes
do records have to be defined / declared
yes both have to happen
how are records often used and how is this acheived
in conjunction with arrays to allow an array with different data types, this is due to the record only being classed as its own single data type
what is easier on memory lists or tuples
tuples as they cannot be changed
why is file handling used
to store data in a non volatile location
what are the 3 parameters used when opening a file
the first is the name given to the pipe connection
the second is the location of the pipe connection
the third is the purpose of the pipe
what are the different ways pipes can work
they can store or retrieve data, multiple can be used but one cannot perform both operations
what is a data structure
a way of organising data to be accessed and modified
what is an element
a slot in an array
what is an item
the object in the element
what is a record
a list that collects different fields of information
what is a serial file
one which stores the data in a random order and is searched through linearly