Define the operators =, ≠, <, <=, >, >=, mod, div.


Teaching Note:

LINK Approved notation sheet.


Sample Question:


JSR Notes:

The idea here is that these are the symbols which will be used in Paper 1 pseudocode.

See the actual "Approved notation for developing pseudocode" document for more details.






mod - this means "modulus", and yields the remainder of integer division between two integer operands

div - the whole number portion of an integer division (The decimal portion is simply ignored, so for all intents and purposes, you could also think of it as rounding down.)


But, just to be sure you don't confuse the IB Approved Pseudocode with Java:

In Java, one = means "is assigned" - we call it the assignment operator; it assigns the data to its right to the variable on its left.
But in some languages it does means "is equal to".

In Java, for checking equality between number data types as well as booleans, we use ==

n Java there is no symbol like this, but in other languages it does means "not equal to".
In Java we use !=