Rev Up for Success with the 2026 OCR GCSE Computer Science Paper 2 Practice Extravaganza!

Question: 1 / 400

Which data type is used to represent text, consisting of a collection of characters?

Array

String

The data type used to represent text, consisting of a collection of characters, is the string. Strings are specifically designed to handle sequences of characters, making them ideal for storing words, sentences, or any text-based information. Additionally, each character in a string can be accessed individually, allowing for operations such as slicing, concatenation, and character replacement.

Arrays and lists can contain various data types, including strings, but they themselves are not specifically designed to handle text. They are collections that can store multiple elements and are not limited to character data. Objects are more complex structures that can contain various data types and methods, making them suitable for more complex data modeling but not solely focused on text representation. Therefore, the string is the most appropriate choice for representing a collection of characters.

Get further explanation with Examzify DeepDiveBeta

Object

List

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy