Variables vs Constants
Part of Variables & Constants · GCSE GCSE Computer Science revision
This study notes covers Variables vs Constants within Variables & Constants for GCSE Computer Science. Revise Variables & Constants in 3.2 Programming for GCSE Computer Science with 17 exam-style questions and 10 flashcards. This topic appears less often, but it can still be a useful differentiator on mixed-topic papers. It is section 3 of 7 in this topic. Use this study notes to connect the idea to the wider topic before moving on to questions and flashcards.
Topic position
Section 3 of 7
Practice
17 questions
Recall
10 flashcards
Variables vs Constants
| Aspect | Variable | Constant |
|---|---|---|
| Value can change? | Yes - can be reassigned | No - fixed once declared |
| Use for | Scores, counters, user input | PI, VAT rate, fixed values |
| Naming convention | camelCase or snake_case | UPPER_CASE (often) |
| Example | score = 100 | const PI = 3.14159 |
Keep building this topic
Read this section alongside the surrounding pages in Variables & Constants. That gives you the full topic sequence instead of a single isolated revision point.
Practice Questions for Variables & Constants
Which of the following best describes a variable in a program?
Explain three reasons why using named constants is considered good programming practice.
Quick Recall Flashcards
17 questions on Variables & Constants — practise free
Instant marking, adaptive difficulty, and 10 spaced repetition flashcards. Free until your GCSEs.
Try PrepWise Free