Ace the 2025 OCR GCSE Computer Science Challenge – Code Your Way to Success!

Question: 1 / 400

Which data type is used to represent text and is made up of a collection of characters?

Boolean

Decimal

String

The data type that is used to represent text and consists of a collection of characters is known as a string. A string can include letters, numbers, symbols, and spaces, making it versatile for various text representations. For example, a string can represent a word, a sentence, or even paragraphs of text. Strings are essential in computer programming and data handling because they allow for the manipulation of textual data, such as storing user input, displaying messages, or processing language-based data.

In contrast, the other types serve distinct purposes: a Boolean represents true or false values, a Decimal is used for precise numerical values often involving fractions, and an Integer is for whole numbers without decimals. These types do not accommodate text or character collections, which is why they do not fit the definition presented in the question.

Get further explanation with Examzify DeepDiveBeta

Integer

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy