CompTIA Data+ (DA0-001) — Question 18

Which of the following is the correct data type for text?

Answer options

Correct answer: B

Explanation

The correct answer is B, String, because a string is specifically designed to handle sequences of characters, including text. The other options represent different data types: A (Boolean) is for true/false values, C (Integer) is for whole numbers, and D (Float) is for decimal numbers.