asked 64.9k views
4 votes
Which data type would best hold the value "greetings"?

a. string floating
b. point
c. integer
d. boolean

asked
User Fuentes
by
7.6k points

1 Answer

4 votes

Final answer:

The best data type to hold the value "greetings" is a string since it is used to store textual content.

Step-by-step explanation:

The value "greetings" is textual content, and in most programming languages, textual content is stored as a string data type. This means the correct answer is (a) string. Unlike other data types such as integers which store numbers without decimals, floating-point which store numbers with decimals, or boolean which store true or false values, strings are used to store characters, words, or any sequence of text.

answered
User Kosiek
by
8.0k points

No related questions found

Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.