exam questions

Exam 1z0-144 All Questions

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

Exam 1z0-144 topic 1 question 71 discussion

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

Examine the following partial declare section from a block of PL/SQL code

Which line(s) in the above code are NOT valid? (Choose all that apply.)

  • A. line 2
  • B. line 3
  • C. line 4
  • D. line 5
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️

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
trex_fcs
1 year, 10 months ago
Selected Answer: B
declare v_wage NUMBER NOT NULL := 1000; v_total_wage v_wage%TYPE; -- cant use without value initialization work_complete CONSTANT BOOLEAN := TRUE; all_work_complete work_complete%TYPE; begin null; end;
upvoted 1 times
...
BM2000
1 year, 11 months ago
Selected Answer: B
B is the correct answer, with 19c
upvoted 1 times
...
Paps23
2 years, 3 months ago
After testing D is correct under oracle 19c this says only B is the correct answer
upvoted 3 times
...
neziniukas
3 years, 7 months ago
Only B is correct on version 18. Line 3 does not compile due to error "PLS-00218: a variable declared NOT NULL must have an initialization assignment". Other lines compiles successfully, value of 'all_work_complete' is null.
upvoted 2 times
...
Limak665
3 years, 8 months ago
D should work in 19c
upvoted 1 times
...
luiseng
4 years, 6 months ago
Answer is correct (B and D) Line 3: Variable v_total_wages will have same Data type and NOT NULL constraint than v_wage. However no default value is assigned to it, so compiler will throw an error in this line. Line 5: %Type can be used with columns and variables (not constants).
upvoted 4 times
...
nadzeya_bdc
4 years, 6 months ago
B and D are wrong because they are don't contain column name. %TYPE indicates that we deal with a column not a table (%ROWTYPE).
upvoted 1 times
...
romsav
4 years, 8 months ago
ONLY B is wrong, because of "NOT NULL" constraint. Everything other is correct.
upvoted 1 times
...
chamisso
5 years ago
D will work under 12c version
upvoted 3 times
CosminCof
4 years, 11 months ago
%TYPE is used with columns from tables
upvoted 1 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