4.10 - 4.14 Types / Structures Flashcards
:)
What are the 5 data types
Integer, Real(Float), Boolean, Character, String
What are the three different types of data structures
Records, Arrays and Lists
Structures can either be…
Dynamic or static
State the use of a Boolean data type
True or False
Describe the data structure “Lists”
A form of array, Stores data in the order added to memory, Can store different types of data integer, float, string, character…), Dynamic data structure, Data can be inserted / deleted from a list, Can traverse (or loop (for/while)) through a list, Can search a list
Describe the Data structure “Array”
Holds a fixed number of data items, Must be the same data type (integer, float, string, character…), Data items are known as elements, An array is an example of a static data structure, Data can be deleted from an array, not inserted, Can traverse (or loop (for/while)) through an array, Can search an array
An example of 1D array could be..
used for recording temperatures after a science experiment
An example of 2D array could be..
used for recording temperatures
and liquid density after a science experiment
Describe the Data structure “Records”
Can hold data of different types, A record holds information about one person, place or item, A record is made up of different fields, with different
data types
What is the structure of a Record
Key Field, File/Table and Fields
What should each Record have?
Each record should have a key field, this
will make each record unique
What is a File/Table
A file / table is a collection of records
What is a Record made up of?
A record is made up of fields that hold a
specific piece of information. A field is made up of one specific data
type