MOD: remainder (8.1c)
Returns the remainder left when a is divided by b. MOD(10, 3) is 1. The result is 0 when b divides a exactly. Example: MOD(130, 60) gives the 10 leftover minutes.
Understanding MOD: remainder (8.1c) in IGCSE Computer Science Paper 2
What it does: 130 minutes is 2 hours (120 minutes) with 10 minutes left, and MOD(130, 60) gives that remainder 10. An even number divides by 2 exactly, so MOD(Number, 2) is 0. Odd numbers leave a remainder of 1. 10 divided by 3 is 3 remainder 1. MOD gives the remainder, so the answer is 1. MOD gives the remainder. The whole-number quotient is given by DIV. MOD(130, 60) is 10, the leftover minutes after 2 whole hours. The first argument is the number being divided. MOD needs two arguments, a and b. MOD(17, 5) returns 2. 7 divided by 2 is 3 remainder 1. MOD returns the remainder 1, not the quotient 3.
Common mistakes: The arguments are the wrong way round. MOD(a, b) is the remainder when a is divided by b, so the total minutes must come first: MOD(TotalMins, 60) gives the 10 leftover minutes. The two arguments of MOD must be separated by a comma. It should be MOD(Num, 3), which gives 1.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 429–438) and word search (Modules 419–438).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
MOD(a, b)Fill in the Blanks
Spot the Error
Student with a class code? Join your class →