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.
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.
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
This section is not available anymore. Please use the main Exam Page.1z0-144 Exam Questions
Log in to ExamTopics
Sign in:
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.
Angelos_ang
2 years, 7 months agoNaveen_2022
2 years, 10 months agoLambert
4 years, 2 months agoLambert
4 years, 2 months agoLambert
4 years, 2 months agockache
4 years, 8 months agochamisso
5 years, 4 months ago