DoRevision Sign up free

MOD & DIV Gym

Work out your integer-arithmetic muscles: DIV for the whole-number quotient, MOD for the remainder, and the clever tricks they unlock - even/odd tests, digit extraction and time conversion.

⏱️ 17 min 🎯 14 activities Teachers Not yet rated Students Not yet rated

Revise this, the fun way

Play it interactively, earn XP and build a streak, free.

Start revising free

What you'll cover

Welcome to the MOD & DIV gym 🏋️

Ordinary division gives 17 / 5 = 3.4. But computers often want the two **whole** pieces instead: how many whole 5s fit (3), and what is left over (2). That is what **DIV** and **MOD** do. This module trains both, then shows the tricks they unlock - testing even or odd, pulling out digits, and converting units.

The words you need 🔑

Four terms do all the work:

Match each expression to its value 🔗

  • 17 DIV 5
  • 17 MOD 5
  • 9 DIV 2
  • 9 MOD 2
  • 3
  • 2
  • 4
  • 1

Even or odd? 🔍

How can a program test whether a whole number n is EVEN?

  • Check that n MOD 2 = 0
  • Check that n MOD 2 = 1
  • Check that n DIV 2 = 0
  • Check that n DIV 2 = 1

How DIV and MOD fit together 🟰

DIV and MOD are two halves of the same division. For any whole numbers a and b: **a = (a DIV b) x b + (a MOD b)** For example, 17 = (17 DIV 5) x 5 + (17 MOD 5) = 3 x 5 + 2 = 17. DIV gives the quotient (3), MOD gives the remainder (2).

Work out a DIV ➗

An interactive activity.

When do you reach for MOD? ✅

Select the TWO tasks that use MOD (the remainder).

  • Getting the last digit of a number, with n MOD 10
  • Checking whether a number is even, with n MOD 2
  • Counting how many whole groups fit, with n DIV size
  • Removing the last digit, with n DIV 10

Work out a MOD 🔢

An interactive activity.

Two answers from one division ⚖️

The same division, 17 / 5, gives two different whole answers depending on the operator.

One more remainder 🧮

An interactive activity.

Put it together 🧱

The _____ operator gives the whole-number result of a division, while _____ gives the _____. So 17 DIV 5 is _____ and 17 MOD 5 is _____.

DIV MOD remainder 3 2 quotient 5 4 whole 17

Split a two-digit number 🪜

An interactive activity.

Trace the time converter 📊

An interactive activity.

The grade-9 habit 🌟

Choose the operator by what you need: **DIV** when you want the whole-number **quotient** (how many fit, removing digits, whole hours), **MOD** when you want the **remainder** (even/odd, the last digit, leftover minutes). They team up beautifully - hours = mins DIV 60 and leftover = mins MOD 60, or tens = n DIV 10 and units = n MOD 10. Reach for the right one, and combine them - top band.