Question: What is the principal difference between an array and a matrix?
- A matrix has two dimensions, while an array can have three or more dimensions.
- An array is a subtype of the data frame, while a matrix is a separate type entirely.
- A matrix can have columns of different lengths, but an array's columns must all be the same length.
- A matrix may contain numeric values only, while an array can mix different types of values.
Answer: The correct answer of the above question is Option A:A matrix has two dimensions, while an array can have three or more dimensions.