301.7 Maintainable Code
Practise exam questionsMaintainable Code — Note 1 of 4
Clear and descriptive identifiers.
Meaningful names tell the reader what a variable or function does without needing extra comments. Code with clear names is easier to debug and maintain.
total_score not tscalculate_area()# Clear
student_age = 15
total_marks = 87
# Unclear
sa = 15
tm = 87Specification notes for programming are in Paper 2.