Skip to main contentSkip to solution

Solution

✅ Correct Option: 3

In MySQL, MOD(N,M)MOD(N, M) returns the remainder of NN divided by MM. Division by zero is undefined, so MOD(98,0)MOD(98, 0) returns NULL instead of a number.

MySQL gives no error here (in the default mode). It silently returns NULL.


Option 1: some databases, such as Oracle, return the first number (98) for a zero divisor, but MySQL does not.

Option 2: 0 is the remainder only when the number divides exactly, which is not the case here.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question