Choose exam board for KS4 Computer Science (GCSE)
Choose exam board for KS4 English
Choose exam board for KS4 French
Choose exam board for KS4 Geography
Choose exam board for KS4 German
Choose exam board for KS4 History
Choose tier for KS4 Maths
Choose exam board for KS4 Music
Choose exam board for KS4 Physical education (GCSE)
Choose exam board for KS4 Religious education (GCSE)
Choose exam board for KS4 Spanish

      Lesson details

      Learning outcome

      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

      Common misconception

      Just like addition, subtraction and multiplication there is only one type of division in programming.

      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.

      Teacher tip

      This lesson requires pupils to understand the order of precedence of operations. Spend some time ensuring pupils understand the concepts covered in the maths curriculum before moving on to implementing in programs.

      Equipment

      Pupils will need access to a device that can edit and run Python programs. Examples in this lesson use the RPF Code Editor https://oak.link/python-editor

      Licence

      This content is © Oak National Academy Limited (2026), licensed on Open Government Licence version 3.0
      except where otherwise stated. See Oak's terms & conditions
      (Collection 2).

      Lesson video

      Loading...

      Prior knowledge starter quiz

      6 Questions

      Q1.
      What will be displayed if the user inputs "Python"?
      123456
      print("Name the best programming language?") language = input() if language == "Python": print("Hi Pythonista") else: print("Wrong!")
      Code colour

      Wrong!
      Correct answer: Hi Pythonista
      Hi Pythonista Wrong!
      There is an error in the program.

      Q2.
      What will this program output?
      1234567
      number = 13 if number < 10: print("small") elif number < 100: print("medium") elif number < 1000: print("large")
      Code colour

      small
      Correct answer: medium
      medium large
      large

      Q3.
      What will this program output if the user enters 0?
      123456
      print("Enter a number") number = int(input()) if number >= 0: print(f"{number} is positive") else: print(f"{number} is negative")
      Code colour

      0 is positive 0 is negative
      Correct answer: 0 is positive
      0 is negative

      Q4.
      If a program checks a condition and finds it to be False, what happens next?

      it follows the True path
      it stops running
      Correct answer: it follows the False path
      It repeats the condition

      Q5.
      Match the term to the description.

      Correct Answer:selection,used when there is more than one possible path for a program to follow

      used when there is more than one possible path for a program to follow

      Correct Answer:condition,an expression that evaluates to True or False

      an expression that evaluates to True or False

      Correct Answer:multi-path selection,used when there are multiple paths for a program to follow

      used when there are multiple paths for a program to follow

      Q6.
      What is the name of the shape used to represent a decision in a flow chart?

      Correct Answer: diamond

      6 Questions

      Q1.
      What is an arithmetic operator?

      a symbol used to store values
      Correct answer: a symbol that tells the computer to perform a calculation
      a variable that holds text
      a special type of loop

      Q2.
      What is the result of 10 - 2 + 2 * 5

      20
      Correct answer: 18
      16
      14

      Q3.
      What does the // symbol represent?

      real divisision
      modulo division
      Correct answer: integer division

      Q4.
      What is the result of 14 // 3?

      Correct Answer: 4

      Q5.
      What does the modulo operator (%) return?

      the whole number from a division
      the sum of two numbers
      the result of the division including decimal points
      Correct answer: the remainder of a division

      Q6.
      Match the symbol to the operation.

      Correct Answer:+,addition

      addition

      Correct Answer:/,real division

      real division

      Correct Answer:*,multiplication

      multiplication

      Correct Answer://,integer division

      integer division

      Correct Answer:%,modulo division

      modulo division

      Correct Answer:,exponentiation

      exponentiation


      To help you plan your 10 computer science lesson on: Arithmetic operators, download all teaching resources for free and adapt to suit your pupils' needs...