ProgrammingLow Exam FrequencyOCR

Variables & Constants

Revise Variables & Constants in Programming for GCSE Computer Science with 15 exam-style questions and 10 flashcards. This topic appears less often, but it can still pick up marks when it appears in mixed-topic papers.

Sample Flashcards

What is a variable?
Named storage location whose value can change
What is a constant?
Named storage location whose value cannot change

Sample Questions

Which of the following best describes a variable in a program?

  • A. A named memory location whose value can be changed during execution
  • B. A named memory location whose value cannot be changed once set
  • C. A value that is hard-coded directly into the program instructions
  • D. A fixed mathematical value such as pi or the speed of light
1 markfoundation

Explain three reasons why using named constants is considered good programming practice.

3 marksstandard

15

exam-style questions

10

revision flashcards

Ready to revise Variables & Constants?

Get personalised daily study plans, adaptive quizzes, and spaced repetition flashcards.

Join Alpha