Which data type would you use to store a customer's phone number in MySQL?
Correct answer
C. CHAR(10)
17 views
C. CHAR(10)
17 views
CHAR(10) is the expected answer: a phone number is an identifier, not a quantity, so it should be stored as text. An INT would drop leading zeros and cannot hold "+" or dashes, and DATE is irrelevant.
CHAR suits values of fixed length. In real projects VARCHAR is often chosen instead, because international numbers vary in length.
Keep preparing with more Database Management Systems MCQs on MCQsExam.com.
Not sure why the answer is C? Ask here and get an explanation.