Arrays (Edexcel GCSE Computer Science): Flashcards
📚Flashcards
Practise the cards
12 cards from this deck
ShowHide
Practise the cards
12 cards from this deck
Array definition
Array definition
Organized method for storing data
Arrays vs variables: key difference
Arrays vs variables: key difference
Arrays store multiple values; variables store one
Element in an array
Element in an array
Individual data item in an array
Index in an array
Index in an array
Specific position of an element
Starting index number for arrays
Starting index number for arrays
0 (zero-based indexing)
Highest index in array with 5 elements
Highest index in array with 5 elements
4
1D array definition
1D array definition
Single row of data
Syntax to access array element
Syntax to access array element
Array name followed by index in square brackets
Traversing an array meaning
Traversing an array meaning
Going through every element one by one
2D array definition
2D array definition
Table/grid with rows and columns
Indexes needed for 2D array element
Indexes needed for 2D array element
Two: one for row, one for column
2D array indexing order rule
2D array indexing order rule
Row first, then column
