CompTIA ITF+ (FC0-U61) — Question 207
Which of the following is a programming language data type that contains a list of related values, such as colors?
Answer options
- A. String
- B. Array
- C. Float
- D. Boolean
Correct answer: B
Explanation
The correct answer is B, Array, as it is specifically designed to store multiple related values in a list format. Options A, C, and D represent different data types: A (String) is for text, C (Float) for decimal numbers, and D (Boolean) for true/false values, none of which can hold a list of related items.