Purposes of internal documentation
Explanation written inside the code to say what it does and why, so other programmers can understand, fix and update it later.
Understanding Purposes of internal documentation in VCE Applied Computing U1O2
What it does: This comment gives the reason behind the value 50. A maintainer can then update it safely if the policy changes. Internal documentation is explanation written inside the code. It does not change how fast the program runs. Clear explanations make errors easier to find and updates easier to make, but testing is still needed. Without explanations, a new programmer must work out the purpose of every section by guessing. Comments are ignored by the interpreter or compiler, so they only help human readers. Even the original programmer forgets details over time, so internal documentation helps them too. Good internal documentation explains purpose, for example: # GST rate used to calculate the price.
Common mistakes: The comment says the code calculates GST, but adding the rate to the price does not do that. It should multiply: gst = price * gst_rate. Comments must match what the code does. The comment has no # at the start, so Python reads it as code and gives an error. It should be: # Stop score going below 0.
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
internal documentationFill in the Blanks
Spot the Error
Student with a class code? Join your class →