Structured data types (Edexcel GCSE Computer Science): Flashcards
📚Flashcards
Practise the cards
12 cards from this deck
ShowHide
Practise the cards
12 cards from this deck
Data structure definition
Data structure definition
Organized way of storing multiple pieces of information together
Two types of data structure dimensions
Two types of data structure dimensions
One-dimensional (single row) & two-dimensional (table/grid)
Array data type requirement
Array data type requirement
All elements must be the same data type
Term: arrays are this (same data type)
Term: arrays are this (same data type)
Homogeneous
What are indices?
What are indices?
Position numbers used to access array elements
Array indexing starts at which number?
Array indexing starts at which number?
0
Record data type requirement
Record data type requirement
Elements can be different data types
Key difference: arrays vs records
Key difference: arrays vs records
Arrays: same data type. Records: different data types
Golden rule for accessing data structures
Golden rule for accessing data structures
One index per dimension
Indices needed for 2D structure access
Indices needed for 2D structure access
Two indices
How arrays & records implemented in Python
How arrays & records implemented in Python
Both use lists
1D structure analogy
1D structure analogy
Single row of items (like a row of books)
