Pascal case names for subroutines
A Pascal case subroutine name: it starts with a capital letter, each word is capitalised, and it uses only letters and digits, with no spaces, no underscores and no starting digit.
Understanding Pascal case names for subroutines in IGCSE Computer Science Paper 2
What it does: CalculateTotal describes the job of the function (working out a total) and follows Pascal case, so the name explains the purpose. ShowScore2 uses a digit at the end, which is allowed. The name still starts with a capital letter, so it is valid. A subroutine name cannot contain spaces. Join the words together and capitalise each one: DefaultLine. Pascal case names use only letters and digits. Underscores and spaces are not used. A descriptive name such as CalculateTotal tells the reader what the subroutine does. A short name like Ct does not.
Common mistakes: The call uses an underscore, but Pascal case names contain only letters and digits. The name should be written as DefaultLine, so the call is CALL DefaultLine(). A Pascal case name must start with a capital letter. calculateTotal starts with a lowercase c. It should be CalculateTotal.
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 399–408) and word search (Modules 399–418).
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
CalculateTotalFill in the Blanks
Spot the Error
Student with a class code? Join your class →