Test yourself on Variables & Constants with exam style questions, marked instantly.
Flashcards that come back just before you would forget them.
A revision plan that remembers what you know and shows what to do next.
See which topics you have nailed and which need another look.
Quiz yourself on Variables & ConstantsGet your flashcardsBuild my revision planTrack my progressThe Storage Boxes
Think of computer memory as a warehouse full of boxes. A variable is a labelled box where you can store data - and change what's inside whenever you want. The label (name) stays the same, but contents can change: "score = 10" then later "score = 15". A constant is a sealed box - once you put something in, it can never change. Use constants for things like PI = 3.14159 or VAT_RATE = 0.20.
The variable score changes from 0 to 10 to 25. The padlock marks constants, which are set once and never change. In OCR pseudocode a variable is written score = score + 10 and a constant is written const VAT_RATE = 0.2. Edexcel does not set a strict pseudocode style.
Make this stick
Signing in gives access to all PrepWise features.