1Z0-007 · Question #154
Evaluate the SQL statement: SELECT ROUND (TRUNC(MOD(1600,10),-1),2) FROM dual; What will be displayed?
The correct answer is A. 0. Result will be 0. MOD(x,y) function calculates the modulus of x, defined in long division as the integer remainder when x is divided by y until no further whole number can be produced. TRUNC() function truncates x to the decimal precision of y. ROUND(x,y) rounds x to the…
Question
Evaluate the SQL statement:
SELECT ROUND (TRUNC(MOD(1600,10),-1),2) FROM dual; What will be displayed?
Options
- A0
- B1
- C0.00
- DAn error statement
How the community answered
(56 responses)- A79% (44)
- B11% (6)
- C7% (4)
- D4% (2)
Explanation
Result will be 0. MOD(x,y) function calculates the modulus of x, defined in long division as the integer remainder when x is divided by y until no further whole number can be produced. TRUNC() function truncates x to the decimal precision of y. ROUND(x,y) rounds x to the decimal Incorrect Answers B: Result will be 0, not 1. C: Result will be 0, not 0.00 because MOD(1600,10) return 0 and all other functions (TRUNC and ROUND) return 0 also. D: There is no error in this statement.
Topics
Community Discussion
No community discussion yet for this question.