Naming conventions for solution elements
An agreed pattern for naming variables, functions, classes and constants so code is consistent, uses meaningful names and is easy to read.
Understanding Naming conventions for solution elements in VCE Applied Computing U1O2
What it does: Names such as total_price, quantity and unit_price show their purpose without needing extra comments. All three variables use lowercase snake_case, so the program follows one pattern and is easier to read and maintain. A meaningful name tells the reader what the data represents. Single letters like x make code harder to read and maintain. A common convention is to write constants in UPPER_CASE with underscores so they stand out from ordinary variables. Class names usually use PascalCase (each word capitalised, no underscores), which separates them from variable and function names. Mixing styles within one program makes it harder to read. A convention should be applied to every variable.
Common mistakes: The constant was named MAX_ATTEMPTS in upper case. Using max_attempts breaks the convention and the program's consistency, and it would also cause an error because that name does not exist. It should be MAX_ATTEMPTS. Class names should use PascalCase (each word starts with a capital, no underscores) so they stand out from variables. The line should be class Book: to match the rest of the program.
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 8–88) and word search (Modules 8–124).
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
naming conventionFill in the Blanks
Spot the Error
Student with a class code? Join your class →