Question: How does a vector differ from a list?
- Vectors are used only for numeric data, while lists are useful for both numeric and string data.
- Vectors and lists are the same thing and can be used interchangeably.
- A vector contains items of a single data type, while a list can contain items of different data types.
- Vectors are like arrays, while lists are like data frames.
Answer: The correct answer of the above question is Option C:A vector contains items of a single data type, while a list can contain items of different data types.