Records (Edexcel GCSE Computer Science): Flashcards
📚Flashcards
Practise the cards
14 cards from this deck
ShowHide
Practise the cards
14 cards from this deck
Define record (data structure)
Define record (data structure)
Data structure grouping related pieces of information
What are fields?
What are fields?
Individual pieces of information within a record
Can fields have different data types?
Can fields have different data types?
Yes - numbers, text, decimals, etc.
How many dimensions does a single record have?
How many dimensions does a single record have?
One dimension (only need one index to access fields)
Indexing starts from which number?
Indexing starts from which number?
0 (not 1)
Define array of records
Define array of records
Collection of multiple records (nested structure)
How many dimensions does an array of records have?
How many dimensions does an array of records have?
Two dimensions (need two indices to access data)
Two-dimensional indexing explained
Two-dimensional indexing explained
First index = record, second index = field
Rows in record table represent
Rows in record table represent
One complete record
Columns in record table represent
Columns in record table represent
One field across all records
Are column headers stored in memory?
Are column headers stored in memory?
No, just labels to help understand data
Syntax to access single record field
Syntax to access single record field
record[position]
Syntax to access collection field
Syntax to access collection field
collection[record][field]
Real-world record uses (examples)
Real-world record uses (examples)
Student databases, shopping, banking, medical records
