Skip to main contentSkip to solution

Solution

✅ Correct Option: 1,4

MOD(x, y) returns the remainder of x divided by y. With a divisor of 0 the result depends on the database. Systems that follow standard division rules, such as PostgreSQL and SQL Server, raise a division-by-zero error, so Option 1 is correct.

Oracle does not raise an error. It defines MOD(x,0)=x\text{MOD}(x, 0) = x and returns the first number, 987, so Option 4 is also correct.


Option 3: 0 is the remainder only when the divisor divides the number exactly, and 0 can never be a divisor.

Option 2: no rule of division gives 1 here.

Keyboard Shortcuts

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