1Z0-909 · Question #39
Examine this statement and output: Now, examine these desired output values: Which statement updates the table data as require
The correct answer is E. UPDATE exam_result SET score=ROUND(score,1). ROUND(score, 1) performs standard mathematical rounding to one decimal place (e.g., 3.76 → 3.8), which matches the desired output values shown in the question. Why the distractors fail: A - TRUNCATE is written without arguments, making it syntactically invalid. B - Uses the…
Question
Examine this statement and output:
Now, examine these desired output values:
Which statement updates the table data as require
Exhibit
Options
- AUPDATE exam_result SET score=TRUNCATE
- BUPDATE examresult SET score=ROUND(CEIL(score
- CUPDATE exam_result SET score=CEIL(TRUNCATE(sco
- DUPDATE exam_result SET score=CEIL(ROUND(score,1));
- EUPDATE exam_result SET score=ROUND(score,1);
- FUPDATE exam_result SET score=TRUNCATE(score,1);
How the community answered
(35 responses)- A3% (1)
- C11% (4)
- D3% (1)
- E83% (29)
Explanation
ROUND(score, 1) performs standard mathematical rounding to one decimal place (e.g., 3.76 → 3.8), which matches the desired output values shown in the question.
Why the distractors fail:
- A -
TRUNCATEis written without arguments, making it syntactically invalid. - B - Uses the wrong table name (
examresultinstead ofexam_result) and has incomplete/unclosed syntax. - C - Incomplete syntax (
scois truncated), and nestingCEILaroundTRUNCATEwould produce incorrect integer-biased results. - D -
CEIL(ROUND(score,1))first rounds to one decimal, thenCEILforces it up to the nearest whole integer, destroying decimal precision entirely. - F -
TRUNCATE(score, 1)simply chops off digits after the first decimal without rounding (e.g., 3.76 → 3.7, not 3.8), producing values that differ from the expected output.
Memory tip: Think of ROUND as a fair judge (goes up or down based on the next digit) and TRUNCATE as a harsh cutter (always drops what follows). When exam output shows values like 3.8 from 3.76, "fair rounding" is required - reach for ROUND.
Topics
Community Discussion
No community discussion yet for this question.
