Meaningful identifiers for arrays
An array name that says what its elements hold, like StudentNames not A. It must never be a keyword such as INPUT or FOR, and upper or lower case makes no difference.
Understanding Meaningful identifiers for arrays in IGCSE Computer Science Paper 2
What it does: Both lines use the same array even though the capitals differ, because upper or lower case makes no difference to an identifier. Temperatures is plural and describes the many REAL values stored, so the name matches the contents of the array. StudentNames says what the elements hold. A single letter like A tells the reader nothing about the data. Meaningful identifiers make the program easier to read, trace and fix. Short names such as A or X hide the purpose of the array. INPUT is a keyword, so it can never be used as an identifier. Scores is a valid and meaningful name.
Common mistakes: A is a meaningless name and it is not the same array as Scores. Use the descriptive identifier Scores: Scores[2] ← 82. The array is called Prices. Price is a different identifier, so it would refer to an array that does not exist. Use the same plural name: OUTPUT Prices[3].
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 449–458) and word search (Modules 439–458).
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
meaningful identifierFill in the Blanks
Spot the Error
Student with a class code? Join your class →