Which operation gives the remainder when one number is divided by another?

- Modulo (Answer)
- Static cast
- Concatenation
- Dereference
The correct answer is: Modulo
The modulo gives the remainder: 17 \bmod 5 = 2. Many languages write it as %, and they disagree on negatives: -7 % 3 gives -1 in C but 2 in Python. It is the classic way to check whether a number is even.
More on Wikipedia · From the quiz of Wednesday, 25 November 2026