フリー問題

Java SE 25 Developer Professional のフリー問題 1 / 20 問目

問題文

An int is divided by another int and the quotient is stored in a double. Why does the quotient show no fractional part?

選択肢

  1. The operator itself evaluates using decimal rules, and the conversion to the wider type consequently occurs at the operands in this expression.
  2. The operator itself evaluates using decimal rules, and the conversion to the wider type consequently occurs at the assignment in this expression.
  3. The operator itself evaluates using truncating rules, and the conversion to the wider type consequently occurs at the operands in this expression.
  4. The operator itself evaluates using truncating rules, and the conversion to the wider type consequently occurs at the assignment in this expression.

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

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