DECLARE a variable (7c)
Creates a variable named Counter and states its data type (INTEGER) before it is used. The format is DECLARE <identifier> : <data type>, with a space on each side of the colon.
Understanding DECLARE a variable (7c) in IGCSE Computer Science Paper 2
What it does: A price with pence needs a number with a decimal part, so the data type is REAL. The format is DECLARE <identifier> : <data type>. BOOLEAN is the data type for TRUE or FALSE values. STRING is for text. A variable must be declared before use, so the algorithm knows its name and data type. Write a space on each side of the colon: DECLARE Counter : INTEGER. Declare the variable first, then give it a value. Using it before declaring it is an error.
Common mistakes: The colon is missing. The format is DECLARE <identifier> : <data type>, so it should be DECLARE GameOver : BOOLEAN. Pseudocode keywords must be written in upper case. It should be DECLARE Counter : INTEGER.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 146–155) and word search (Modules 146–165).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
DECLARE Counter : INTEGERFill in the Blanks
Spot the Error
Student with a class code? Join your class →