Meaningful identifiers for arrays, procedures and functions
Each word starts with a capital. Name arrays with nouns (StudentNames); name functions and procedures with verbs (CalculateTotal, DisplayMenu) to show what they store or do.
Understanding Meaningful identifiers for arrays, procedures and functions in IGCSE Computer Science Paper 2
What it does: DisplayMenu begins with the verb Display and each word is capitalised, so the name shows what the procedure does. ExamScores is a noun phrase in PascalCase, so it describes the data stored in the array. Arrays hold data, so they are named with nouns. Verbs are for procedures and functions, which perform actions.
Common mistakes: The array name x says nothing about what it stores. Arrays should have descriptive PascalCase noun names, so this line should use StudentNames[2]. The identifier is all lower case, so the words are hard to read. PascalCase starts each word with a capital: DisplayMenu.
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 347–357) and word search (Modules 337–357).
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
PascalCaseFill in the Blanks
Spot the Error
Student with a class code? Join your class →