Back to Arithmetic Operations In A Programming Language

Oak National Academy

Lessons written by expert teachers in England, each with slides, a video and quizzes.

Their topic:
Programming: selection
For your topic:
Arithmetic Operations In A Programming Language · Computer Science - 9210

Use these lessons alongside our lesson note, which covers your syllabus in full.

What this covers in your syllabus

1 lesson from Oak National Academy

Lesson 1 of 1 · GCSE level, ages 14 to 16

Arithmetic operators

By the end: I can use a variety of arithmetic operators in a program.

Key learning points

  1. Arithmetic expressions are used to calculate values.
  2. Arithmetic expressions can be used in selection statements. Expressions either return as True or False.
  3. In real division there is no remainder because the entire value is divided.
  4. Integer division is when any remainder of a division is discarded.
  5. 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.

What is an arithmetic operator?
What is the result of 10 - 2 + 2 * 5
What does the // symbol represent?
What does the modulo operator (%) return?

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.