Cambridge International · IGCSE · 0478 · 2026-2028
8.1 Programming concepts
Topic 8.1 of the Cambridge IGCSE Computer Science (0478) syllabus for 2026-2028, in 8 Programming. The syllabus lists 37 things you need to be able to do. Use them as your revision checklist.
What the syllabus asks you to do
Declare and use variables and constants
Understand and use basic data types
Syllabus notes: Including: integer; real; char; string; Boolean
Understand and use input and output
Understand and use the concept of sequence
Understand and use the concept of selection
Syllabus notes: Including: IF statements; CASE statements
Understand and use the concept of iteration
Syllabus notes: Including: count-controlled loops; pre-condition loops; post-condition loops
Understand and use the concepts of totalling and counting
Understand and use the concept of string handling
Syllabus notes: Including: length; substring; upper; lower. The first character of the string can be position zero or one
Understand and use arithmetic, relational and logical operators
Syllabus notes: Arithmetic, limited to: +; –; /; *; ^ (raised to power of); MOD; DIV. Relational, limited to: =; <; <=; >; >=; <> (not equal to). Logical, limited to: AND; OR; NOT
Understand and use nested statements
Syllabus notes: Including nested selection and iteration. Candidates will not be required to write more than three levels of nested statements
Understand what is meant by procedures, functions and parameters
Syllabus notes: Procedures and functions may have up to three parameters
Define and use procedures and functions, with or without parameters
Understand and use local and global variables
Understand and use library routines
Syllabus notes: Including: MOD; DIV; ROUND; RANDOM
Understand how to create a maintainable program
Syllabus notes: Including appropriate use of: meaningful identifiers; the commenting feature provided by the programming language; procedures and functions; relevant and appropriate commenting of syntax. Use meaningful identifiers for: variables; constants; arrays; procedures and functions
8.1.3Values are input using the INPUT command as follows: INPUT <identifier>
Syllabus notes: The identifier should be a variable (that may be an individual element of a data structure, such as an array).
8.1.3Values are output using the OUTPUT command as follows: OUTPUT <value(s)>
Syllabus notes: Several values, separated by commas, can be output using the same command.
8.1.4 (f)Standard arithmetic operator symbols are used: + addition, subtraction * multiplication / division ^ raised to the power of
8.1.4 (f)The integer division operators MOD and DIV can also be used.
Syllabus notes: DIV(<identifier1>, <identifier2>) Returns the quotient of identifier1 divided by identifier2 with the fractional part discarded. MOD(<identifier1>, <identifier2>) Returns the remainder of identifier1 divided by identifier2. The identifiers are of data type integer.
8.1.4 (f)The following symbols are used for relational operations: = equal to < less than <= less than or equal to > greater than >= greater than or equal to <> not equal to
Syllabus notes: The result of these operators is always of data type BOOLEAN.
8.1.4 (f)The only logical operations used are AND, OR and NOT.
Syllabus notes: The operands and results of these operations are always of data type BOOLEAN.
8.1.4 (e)LENGTH(<identifier>) Returns the integer value representing the length of string.
Syllabus notes: The identifier should be of data type string.
8.1.4 (e)LCASE(<identifier>) Returns the string/character with all characters in lower case.
Syllabus notes: The identifier should be of data type string or char.
8.1.4 (e)UCASE(<identifier>) Returns the string/character with all characters in upper case.
Syllabus notes: The identifier should be of data type string or char.
8.1.4 (e)SUBSTRING(<identifier>, <start>, <length>) Returns a string of length length starting at position start.
Syllabus notes: The identifier should be of data type string, length and start should be positive, and data type integer. Generally, a start position of 1 is the first character in the string.
8.1.7ROUND(<identifier> or <expression>, <places>) Returns the value of the identifier or the result of an expression rounded to places number of decimal places.
Syllabus notes: The identifier should be of data type real; places should be data type integer.
8.1.7RANDOM() Returns a random number between 0 and 1 inclusive.
8.1.4 (b) and 8.1.5IF statements may or may not have an ELSE clause.
Syllabus notes: IF statements without an ELSE clause are written as follows: IF <condition> THEN <statements> ENDIF. IF statements with an ELSE clause are written as follows: IF <condition> THEN <statements> ELSE <statements> ENDIF. Note that the THEN and ELSE clauses are only indented by two spaces. When IF statements are nested, the nesting should continue the indentation of two spaces.
8.1.4 (b)CASE statements allow one out of several branches of code to be executed, depending on the value of a variable.
Syllabus notes: An OTHERWISE clause can be the last case. Each case clause is indented by two spaces. The case clauses are tested in sequence. If present, an OTHERWISE clause must be the last case.
8.1.4 (c)Count-controlled loops are written as follows: FOR <identifier> ← <value1> TO <value2> <statements> NEXT <identifier>
Syllabus notes: The identifier must be a variable of data type INTEGER, and the values should be expressions that evaluate to integers.
8.1.4 (c)An increment can be specified as follows: FOR <identifier> ← <value1> TO <value2> STEP <increment> <statements> NEXT <identifier>
Syllabus notes: The increment must be an expression that evaluates to an integer. The increment can be negative.
8.1.4 (c)Post-condition loops are written as follows: REPEAT <statements> UNTIL <condition>
Syllabus notes: The condition must be an expression that evaluates to a Boolean. The statements in the loop will be executed at least once.
8.1.4 (c)Pre-condition loops are written as follows: WHILE <condition> DO <statements> ENDWHILE
Syllabus notes: The condition must be an expression that evaluates to a Boolean. The statements will not be executed if, on the first test, the condition evaluates to FALSE.
8.1.6 (b)A procedure with no parameters is defined as follows: PROCEDURE <identifier> <statements> ENDPROCEDURE
8.1.6 (b)A procedure with parameters is defined as follows: PROCEDURE <identifier>(<param1>:<datatype>, <param2>:<datatype>...) <statements> ENDPROCEDURE
Syllabus notes: The <identifier> is the identifier used to call the procedure. Where used, param1, param2, etc. are identifiers for the parameters of the procedure. These will be used as variables in the statements of the procedure.
8.1.6 (b)Procedures should be called as follows: CALL <identifier> CALL <identifier>(Value1,Value2...)
Syllabus notes: These calls are complete program statements. When parameters are used, Value1, Value2.. must be of the correct data type as in the definition of the procedure.
8.1.6Defining and calling functions
Syllabus notes: Functions operate in a similar way to procedures, except that in addition they return a single value to the point at which they are called. Their definition includes the data type of the value returned.
Syllabus points and notes are quoted from the Cambridge International Cambridge IGCSE Computer Science (0478) syllabus (2026-2028) for study purposes, each one checked word for word against the official document. TutorAura is not endorsed by Cambridge International.
How 0478 is examined
| Paper | Time | Marks | Weighting |
|---|---|---|---|
| Paper 1 Computer Systems no calculator | 1 hour 45 minutes | 75 | 50% |
| Paper 2 Algorithms, Programming and Logic no calculator | 1 hour 45 minutes | 75 | 50% |
Which paper tests which topic isn't fixed: any topic in your tier can come up on any of your papers.
Revise 8.1 with a tutor that knows your syllabusThe TutorAura AI tutor teaches to these exact 0478 syllabus points, explains each mistake one step at a time and sets exam-style questions. Free for 3 days, then free practice every day.
Start free