The correct answer is: associated arrays.
Associated arrays are two or more arrays whose elements are related by their subscripts. For example, if you have two arrays, arr1
and arr2
, where arr1[0]
is equal to arr2[1]
, arr1[1]
is equal to arr2[2]
, and so on, then arr1
and arr2
are associated arrays.
Associated arrays are often used to represent data that has a natural ordering. For example, if you have a list of students, you could store the students’ names in one array and their grades in another array. The students’ names and grades would then be associated arrays.
The other options are incorrect for the following reasons:
- Coupled arrays are two or more arrays that are stored together in memory. However, the elements in coupled arrays do not need to be related by their subscripts.
- Matching arrays are two or more arrays that have the same number of elements. However, the elements in matching arrays do not need to be related by their subscripts.
- Parallel arrays are two or more arrays that are stored in different parts of memory. However, the elements in parallel arrays do not need to be related by their subscripts.