New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA FC0-U71 Exam - Topic 6 Question 2 Discussion

Actual exam question for CompTIA's FC0-U71 exam
Question #: 2
Topic #: 6
[All FC0-U71 Questions]

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

Show Suggested Answer Hide Answer
Suggested Answer: A

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 floats.

Other options:

Integer and float are numeric types unsuitable for formatted phone numbers,

Char holds only a single character.


Contribute your Thoughts:

0/2000 characters
Onita
2 months ago
Float is just wrong for this.
upvoted 0 times
...
Laura
2 months ago
Agreed, numbers can have leading zeros.
upvoted 0 times
...
Timothy
3 months ago
Wait, can you really use Char for that? Seems odd.
upvoted 0 times
...
Jeanice
3 months ago
Integer? That’s a bad choice!
upvoted 0 times
...
Nana
3 months ago
Definitely a String for phone numbers!
upvoted 0 times
...
Hector
3 months ago
I guess Char could work for a single digit, but it wouldn't make sense for a whole phone number, right?
upvoted 0 times
...
Jutta
4 months ago
I practiced a similar question, and I believe String is definitely the right choice because phone numbers aren't used for calculations.
upvoted 0 times
...
Selma
4 months ago
I'm not entirely sure, but I remember something about using integers for numeric data. Wouldn't that apply here?
upvoted 0 times
...
Thaddeus
4 months ago
I think a phone number should be stored as a String since it can have leading zeros and special characters like dashes.
upvoted 0 times
...
Pearline
4 months ago
I'm leaning towards Char for this one. Since phone numbers are just a sequence of digits, Char would be the most space-efficient data type, right? Though I guess you'd have to worry about formatting and validation.
upvoted 0 times
...
Dorathy
4 months ago
String is definitely the way to go here. Phone numbers can have all sorts of formatting, like area codes, country codes, and extensions, so a String data type would be the most flexible option.
upvoted 0 times
...
Chi
5 months ago
I'm a bit unsure about this one. I know phone numbers are typically numeric, so maybe an Integer would be better? But then again, some phone numbers start with a 0, which could cause issues with an Integer.
upvoted 0 times
...
Jeannetta
5 months ago
Hmm, this seems like a straightforward question. I think the best data type for storing a phone number would be a String, since phone numbers can contain non-numeric characters like parentheses and hyphens.
upvoted 0 times
...
Lawana
8 months ago
I disagree. B) Integer would be more efficient for storing phone numbers as it takes up less memory and allows for easier mathematical operations.
upvoted 0 times
...
Darrin
8 months ago
I think A) String is the best choice too. Phone numbers can have different lengths and special characters.
upvoted 0 times
...
Cheryl
8 months ago
Char? What is this, the stone age? String is the way to go, people.
upvoted 0 times
Ivette
8 months ago
I agree, using a string data type allows for flexibility and easy manipulation of phone number data.
upvoted 0 times
...
Peggy
8 months ago
String is definitely the best choice for storing phone numbers.
upvoted 0 times
...
...
Micheal
8 months ago
Float? Really? Who's gonna have a phone number with decimal places?
upvoted 0 times
...
Caprice
8 months ago
Integer, because phone numbers are just numbers, right? No need for all that string stuff.
upvoted 0 times
Alona
7 months ago
Integer, because phone numbers are just numbers, right? No need for all that string stuff.
upvoted 0 times
...
Lanie
7 months ago
D) Char
upvoted 0 times
...
Tabetha
7 months ago
C) Float
upvoted 0 times
...
Lachelle
7 months ago
B) Integer
upvoted 0 times
...
Elizabeth
8 months ago
A) String
upvoted 0 times
...
...
Irving
8 months ago
String for sure, gotta fit all those digits in there!
upvoted 0 times
Evangelina
8 months ago
A) String is the way to go for phone numbers.
upvoted 0 times
...
Carmen
8 months ago
Definitely String, you need all those digits!
upvoted 0 times
...
Thurman
8 months ago
A) String
upvoted 0 times
...
...
Tora
9 months ago
A) String would be best for storing a phone number because it can hold a sequence of numbers and characters.
upvoted 0 times
...

Save Cancel