Data Structures (OCR A-Level Computer Science): Flashcards
📚Flashcards
Practise the cards
12 cards from this deck
ShowHide
Practise the cards
12 cards from this deck
What is an array?
What is an array?
Collection of elements of same data type stored in contiguous memory
What does zero-indexed mean?
What does zero-indexed mean?
First element is accessed with index 0
Array size characteristic
Array size characteristic
Fixed size, determined when array is created
What is a one-dimensional array?
What is a one-dimensional array?
Single row of elements
What is a two-dimensional array?
What is a two-dimensional array?
Array with rows and columns, like a table or grid
What is a three-dimensional array?
What is a three-dimensional array?
Multiple layers of 2D grids
Why are arrays efficient?
Why are arrays efficient?
Fast access to elements using index
When to use arrays?
When to use arrays?
When you have a collection of similar data
Arrays for tabular data
Arrays for tabular data
Data structured in rows and columns
What is index out of bounds error?
What is index out of bounds error?
Accessing an index that doesn't exist in the array
Array dimensions for A-Level
Array dimensions for A-Level
Up to 3 dimensions
Array vs list difference
Array vs list difference
Arrays are fixed size, lists are flexible (in many languages)
