exam questions

Exam 1z0-071 All Questions

View all questions & answers for the 1z0-071 exam

Exam 1z0-071 topic 1 question 102 discussion

Actual exam question from Oracle's 1z0-071
Question #: 102
Topic #: 1
[All 1z0-071 Questions]

Examine this query:

SELECT TRUNC(ROUND(156.00,-2),-1) FROM DUAL;

What is the result?

  • A. 150
  • B. 200
  • C. 160
  • D. 100
  • E. 16
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
yaya32
1 year ago
Selected Answer: B
Answer is B
upvoted 2 times
andrejshilin16
6 months, 2 weeks ago
TRUNCATE here do nothing
upvoted 1 times
...
...
lucemqy
1 year, 2 months ago
Selected Answer: B
Answer is 200
upvoted 1 times
...
metallers
1 year, 3 months ago
Selected Answer: B
Respuesta revisada
upvoted 1 times
...
tjsweg
1 year, 5 months ago
can someone explain why the answer is 200?
upvoted 2 times
Mcromeo
1 year, 4 months ago
because ROUND(156.00,-2) = 200 and trunc(200,-1)=200 (-1 => first number before coma 0 is trunced to 0)
upvoted 1 times
...
...
zouve
1 year, 7 months ago
B is the correct tested
upvoted 2 times
...
CMjer
1 year, 8 months ago
Selected Answer: B
B is correct, run it in SQL Developer
upvoted 2 times
...
Ac37
1 year, 10 months ago
I have run it in oracle and the answer is 200.
upvoted 1 times
...
AbdullaMA2
1 year, 10 months ago
Selected Answer: A
A is the right one : The ROUND(156.00, -2) function call rounds the number 156.00 to the nearest hundredth, resulting in the value 200. The TRUNC(200, -1) function call truncates the number 200 to the nearest ten, resulting in the value 150. Therefore, the final result of the SQL query is 150.
upvoted 2 times
Fargo01
10 months, 2 weeks ago
Just run the query and you'll get the result : 200.
upvoted 1 times
...
...
Rik92
1 year, 11 months ago
TRUNC does nothing here. The rounding of -2 gives closest order of 100, 156->200. Then 200 is truncated to 200
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago