Question: How does a matrix differ from a data frame?

  1. A matrix may contain numeric values only.
  2. A matrix must not be singular.
  3. A data frame may contain variables that have different modes.
  4. A data frame may contain variables of different lengths.

Answer: The correct answer of the above question is Option C:A data frame may contain variables that have different modes.