Discover the correct data type for storing telephone numbers in the 123-456-7890 format. Learn why Text is the ideal choice over Number, Boolean, or Date data types in the CompTIA DA0-001 certification exam.
Table of Contents
Question
A customer’s telephone number is in the format 123-456-7890. Which of the following data types is used for the phone number?
A. Boolean
B. Date
C. Text
D. Number
Answer
C. Text
Explanation
A telephone number in the format 123-456-7890 should be stored as a Text data type. Although the phone number consists of numeric digits, it is not used for mathematical calculations. Text data type preserves the exact format, including hyphens, making it suitable for storing phone numbers.
CompTIA DA0-001 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the CompTIA DA0-001 exam and earn CompTIA DA0-001 certification.