Which of the following data types is used to represent textual data in computers?
Source: JAMB · 2024
Which of the following data types is used to represent textual data in computers?
Explanation
Strings hold text data like words, sentences, and symbols. Any text you type is stored as a string. Even numbers can be strings if you’re treating them as text, not math.
Integers are whole numbers for calculations. Floats are decimal numbers. Booleans only hold true or false values.
When you want to store someone’s name or address, you use a string. It’s the basic text container in programming.
Was this explanation helpful?