logo

Cambridge IGCSE Computer Science practice

What is the purpose of a char data type?

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

At a glance

MCQ

Type

cambridge_mcq

Style

Topic

P rogramming concepts

Exam-style question

Try this first

What is the purpose of a char data type?.

  1. A.To store whole numbers
  2. B.To store decimal numbers
  3. C.To store single characters
  4. D.To store sequences of characters

Answer and explanation

Concise answer

To store single characters

Why this is correct

Char is specifically designed to hold a single character, such as 'A'.

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