Records to Store Data (OCR GCSE Computer Science): Flashcards
📚Flashcards
Practise the cards
12 cards from this deck
ShowHide
Practise the cards
12 cards from this deck
What records store
What records store
Multiple types of related data under one name
Records vs arrays: data type difference
Records vs arrays: data type difference
Arrays store one type; records store multiple types
Definition of a record
Definition of a record
Data structure grouping fields to represent an object/entity
What is a field in a record
What is a field in a record
A variable within a record
Can record fields have diff. data types
Can record fields have diff. data types
Yes (e.g., string, integer, boolean)
Example fields in a student record
Example fields in a student record
Name (string), Age (integer), Grade (string)
How records help organise data
How records help organise data
Group data that belongs together in one structure
How to access a field in a record
How to access a field in a record
Use record name and field name
What can records store that arrays typically can't
What can records store that arrays typically can't
Multiple different data types in one structure
Benefit of records: Clarity
Benefit of records: Clarity
Groups related data, making it clearer to understand
Benefit of records: Flexibility
Benefit of records: Flexibility
Store different data types together in one structure
Benefit of records: Efficiency
Benefit of records: Efficiency
Accessing/modifying fields is simple and efficient
