フリー問題

Oracle Database SQL のフリー問題 8 / 20 問目

問題文

A query contains MOD(salary, bonus_divisor) and some rows hold a zero in bonus_divisor. The team expects those rows to fail. What does the function return for a row where the second argument is zero?

選択肢

  1. It returns a null for that row, because the function is defined to hand back a null whenever an argument it receives makes the division impossible.
  2. It returns a zero for that row, because the function is defined to hand back the divisor whenever the divisor it receives cannot divide the dividend.
  3. It returns the first argument unchanged, because the function is defined to hand back the dividend whenever the divisor it receives is zero.
  4. It raises a divisor is equal to zero error, because the function is defined to carry out the division before it takes the remainder of the result.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。