Pseudocode
Pseudocode will be used as the formal method of describing algorithms in the 2025 v1.2 Digital syllabus. It is a descriptive method used to represent an algorithm and is a mixture of everyday language and programming conventions. Pseudocode is often an intermediate step in programming between planning and writing executable code.
Pseudocode does not have a standard format and varies between programmers; however, algorithms must be able to be understood by anyone independent of a particular programming language. When students use pseudocode, they should:
- implement the basic control structures of assignment, sequence, selection, condition, iteration and modularisation using capitalised keywords associated with the constructs
- indent algorithmic steps where appropriate
- consider a case style that works best with the programming language they will be using in their project, e.g. Pascal Case or Camel Case.
The following pseudocode demonstrates examples of assignment (DECLARE), sequence, condition (IF), selection (THEN), iteration (WHILE), modularisation (FUNCTION, CALL), indentation and two variations of case (UserLogin, userName) for a user authentication process: