logo

Pearson Edexcel GCSE (9-1) Computer Science practice

Which of these data structures is best suited for storing a collection of characters that form a piece of text?

Try the question first, then check the answer and practise the same topic again.

At a glance

MCQ

Type

practice

Style

Topic

Algorithms

Exam-style question

Try this first

Which of these data structures is best suited for storing a collection of characters that form a piece of text?.

  1. A.An integer array
  2. B.A boolean array
  3. C.A string
  4. D.A record

Answer and explanation

Concise answer

A string

Why this is correct

Strings are specifically designed for storing and manipulating sequences of characters (text). Integer arrays store numbers, boolean arrays store true/false values, and records group different data types.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

Flashcard 1 of 6

Press Space to flip, arrows to move

Related practice questions