CompTIA
FC0-U71 · Question #45
Which of the following data types would be best for storing data representing a phone number?
The correct answer is A. String. A phone number is best stored as a string because it may include leading zeros, parentheses, dashes, or plus signs, which are not handled properly by numeric data types like integers or
Data and Database Fundamentals
Question
Which of the following data types would be best for storing data representing a phone number?
Options
- AString
- BInteger
- CFloat
- DChar
How the community answered
(29 responses)- A90% (26)
- B3% (1)
- C7% (2)
Explanation
A phone number is best stored as a string because it may include leading zeros, parentheses, dashes, or plus signs, which are not handled properly by numeric data types like integers or
Topics
#Data types#String data type#Data storage#Phone numbers
Community Discussion
No community discussion yet for this question.