Programming - 2.4 Data structures Flashcards
1
Q
Data structure:
A
An organised collection of related elements. Arrays and records are 2 common data structures used in programming.
2
Q
Two-Dimensional array:
A
a matrix of rows and columns resembling a table. 2 indices are used, one to reference the rows and other the columns. All the elements of a 2 dimensional array share the same data type.
3
Q
Record:
A
A data structure that stores a set of related values of different data types.
4
Q
Field:
A
An individual element in a record.