CompTIA A+ Core 2 (220-1002) — Question 408
Which of the following variable types should be used to store the data `Chicago` within a script or code?
Answer options
- A. Integer
- B. String
- C. Boolean
- D. Float
Correct answer: B
Explanation
The correct answer is B, as `Chicago` is a sequence of characters and should be stored as a String. The other options are incorrect because Integer, Boolean, and Float represent numerical values or logical states, which do not apply to a text value like `Chicago`.