Which of the following data types should a developer use when creating a variable to hold a postal code?

Which of the following data types should a developer use when creating a variable to hold a postal code?
A . Integer
B . String
C . Float
D . Boolean

Answer: B

Explanation:

A string is the data type that a developer should use when creating a variable to hold a postal code. A string is a sequence of characters that can represent text, symbols, or numbers. A string can store any value that can be typed on a keyboard, such as “Hello”, “123”, or “90210”. A string is enclosed by quotation marks to distinguish it from other types of data. A postal code is an example of a value that can be stored as a string.

Reference: The Official CompTIA IT Fundamentals (ITF+) Study Guide (FC0-U61), page 139.

Latest FC0-U61 Dumps Valid Version with 146 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments