logo

Cambridge IGCSE Computer Science practice

What is a variable?

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 a variable?.

  1. A.A fixed value
  2. B.A storage location that can change
  3. C.A type of constant
  4. D.A programming error

Answer and explanation

Attempt the question first, then reveal the model answer and 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

Question 1 of 5

Choose an answer, get feedback, then move sideways through the set.

0 of 3 attempted

Paper 2 structured question: P rogramming concepts

Paper 2Algorithms, Programming and Logic1 marks

Description

Variable and Constant Declaration

In programming, variables are used to store data that can change, while constants are used for fixed values. For example, in Python, a variable can be declared as 'age = 25' and a constant can be declared as 'PI = 3.14'.

  1. a

    State What is the purpose of using constants in programming?

    Aim for approximately 1 distinct marking point.

    [1]