ExamGecko
Question list
Search
Search

Question 345 - FC0-U61 discussion

Report
Export

Which of the following data types would be best for storing data representing a phone number?

A.
String
Answers
A.
String
B.
Integer
Answers
B.
Integer
C.
Float
Answers
C.
Float
D.
Char
Answers
D.
Char
Suggested answer: A

Explanation:

Phone numbers, although made up of digits, are best stored as strings in most programming and database contexts. This is because phone numbers may contain leading zeros, separators (such as dashes or spaces), and international codes that are not used in calculations as numeric values would be. Storing phone numbers as strings preserves the exact formatting and data integrity.

Reference: Basic data type handling is a fundamental topic in IT education, as discussed in CompTIA IT Fundamentals and other programming foundational guides.

asked 02/10/2024
Wilco Gent
32 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first