2 Understand and use basic data typesNot covered here. Our lesson note covers it.
3 Understand and use input and outputNot covered here. Our lesson note covers it.
4 (a) Understand and use the concept of sequence (b) Understand and use the concept of selection (c) Understand and use the concept of iteration (d) Understand and use the concepts of totalling and counting (e) Understand and use the concept of string handlingNot covered here. Our lesson note covers it.
5 Understand and use nested statementsNot covered here. Our lesson note covers it.
6 (a) Understand what is meant by procedures, functions and parameters (b) Define and use procedures and functions, with or without parameters (c) Understand and use local and global variablesNot covered here. Our lesson note covers it.
7 Understand and use library routinesNot covered here. Our lesson note covers it.
Good programming practice involves taking steps to make your code easier to read and understand.
Variables should always have meaningful identifiers so that the reader of the code understands how they are used.
Comments are used in programs to help make it easier for a programmer to understand what it does.
Keywords
comment
text within source code that is ignored by the compiler or interpreter, used to help programmers understand the code
identifier
the name that a programmer gives to a variable, constant, or subroutine
maintainability
refers to the ease with which maintenance activities can be performed on code, such as correcting errors
A common mistake
Mistake:Comments are added to code to help you understand your program.
In fact:Comments are used to make the code more readable to a programmer who seeks to understand it. The comments should be written in a style that would help them make sense of the program.
Check what you learned
From Oak National Academy's exit quiz. Choose every answer that is right.
A computing lesson by Oak National Academy licensed under the Open Government Licence (OGL) v3.0.Read the licence
Lesson 2 of 3 · GCSE level, ages 14 to 16
Refining code in a programming project
By the end:I can identify and make improvements to refine code.