Lessons written by expert teachers in England, each with slides, a video and quizzes.
Their topic:
Programming: selection
For your topic:
Operators · Computer Science - 4CP0
Use these lessons alongside our lesson note, which covers your syllabus in full.
What this covers in your syllabus
Understand the purpose of, and how to use, arithmetic operators (add, subtract, divide, multiply, modulus, integer division)Taught inLesson 1: Arithmetic operators
Understand the purpose of, and how to use, relational operators (equal to, less than, greater than, not equal to, less than or equal to, greater than or equal to)Taught inLesson 3: Relational operators
Understand the purpose of, and how to use, logic operators (AND, OR, NOT)Taught inLesson 2: Logical operators
3 lessons from Oak National Academy
Lesson 1 of 3 · GCSE level, ages 14 to 16
Arithmetic operators
By the end:I can use a variety of arithmetic operators in a program.
Arithmetic expressions are used to calculate values.
Arithmetic expressions can be used in selection statements. Expressions either return as True or False.
In real division there is no remainder because the entire value is divided.
Integer division is when any remainder of a division is discarded.
Modulo division (MOD) will return only the remainder of a division.
Keywords
operator
a symbol or word that instructs the computer to perform a specific calculation or action
arithetic expression
an expression that results in a numeric value
integer division
sometimes known as floor division, is when any remainder of a division is discarded
modulo division
an operation that gives you the remainder when one number is divided by another
A common mistake
Mistake:Just like addition, subtraction and multiplication there is only one type of division in programming.
In fact:There are three types of division in programming; real, integer and modulo division. Each deal with remainder values differently and will be useful in different ways in programming.
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
Logical operators
By the end:I can use logical operators to build more complex selection statements.
Relational operators are used to compare values in expressions.
Expressions either return as True or False.
Relational operators can be used in selection statements.
Keywords
relational operator
compare two values and produce the result of True or False
condition
an expression that evaluates to True or False
selection
used when there is more than one possible path for a program to follow
A common mistake
Mistake:The = operator is used for comparison.
In fact:When using Python for programming the == operator is used for comparison and the = operator is used for assignment. Other languages may not always use these operators for these tasks.
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
The wording comes from each publisher. The layout and the links to your syllabus are ours.