nerdexam
CompTIA

FC0-U61 · Question #63

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

The correct answer is B. String. A postal code (also known locally in various English-speaking countries throughout the world as a postcode, post code, PIN or ZIP Code) is a series of letters or digits or both.

Software Development

Question

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

Options

  • AInteger
  • BString
  • CFloat
  • DBoolean

How the community answered

(18 responses)
  • B
    89% (16)
  • C
    6% (1)
  • D
    6% (1)

Explanation

A postal code (also known locally in various English-speaking countries throughout the world as a postcode, post code, PIN or ZIP Code) is a series of letters or digits or both.

Topics

#data types#variables#programming fundamentals

Community Discussion

No community discussion yet for this question.

Full FC0-U61 Practice