Skip to main contentSkip to solution

State the output of the following query :-

SELECT ROUND(3456.345,0);

Solution

✅ Correct Option: 3

ROUND(x, d) rounds x to d decimal places. With d=0d = 0, the number is rounded to a whole number, so only the first decimal digit decides the result.

The first decimal digit of 3456.345 is 3, which is less than 5, so the number rounds down to 3456.


Option 4: this comes from rounding in stages (.345→.35→.4→1.345 \to .35 \to .4 \to 1), which is wrong. Only the first digit after the decimal point is checked.

Option 1: the 0 is the number of decimal places, not the output.

Option 2: this would be the result only if the number were left unrounded, but d=0d = 0 removes the decimal part.

Keyboard Shortcuts

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