exam questions

Exam 1z0-144 All Questions

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

Exam 1z0-144 topic 1 question 31 discussion

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

ORDER_TOTAL is a column in the orders table with the data type and size as number (8, 2) Examine the following code:

Which statement is correct about the above code?

  • A. It gives an error in line 3.
  • B. It gives an error in line 4.
  • C. It gives an error in line 6.
  • D. It executes successfully and displays the output.
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
Angelos_ang
2 years, 7 months ago
Selected Answer: D
D is correct, simply try it.
upvoted 1 times
...
Naveen_2022
2 years, 10 months ago
It works fine in 19c
upvoted 1 times
...
Lambert
4 years, 2 months ago
Sorry I mean since 12c
upvoted 2 times
...
Lambert
4 years, 2 months ago
I ran it in 18c and it seems to work successfully. I guess the rules have changed since 11g.
upvoted 2 times
...
Lambert
4 years, 2 months ago
B is correct. Line 3 is variable is constant and it's initialized. The line 4 variable is declared to be the same type as the variable in line 3, thus inheriting the properties of the line 3 variable. Therefore the variable in line 4 needs to be initialized.
upvoted 1 times
...
ckache
4 years, 8 months ago
I tried it, the answer is B, but I can't understand why. when I took off CONSTANT from line 3 and put after begin V_order_total:=1000; it works fine can somebody explain please
upvoted 2 times
...
chamisso
5 years, 4 months ago
it works in >=12c version
upvoted 4 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 ...