exam questions

Exam 1z0-148 All Questions

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

Exam 1z0-148 topic 1 question 55 discussion

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

You execute this PL/SQL block:

What will be the outcome?

  • A. It will fail compile because of errors at lines 11 and 12.
  • B. It will fail compile because of errors at lines 6 and 12.
  • C. It will fail compile because of error at line 7.
  • D. It will fail compile and execute successfully.
  • E. It will fail compile because of errors at lines 5 and 6.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
orakell
Highly Voted 5 years, 6 months ago
B, not C. JFC.
upvoted 9 times
...
chrishillinger
Most Recent 2 years, 9 months ago
Selected Answer: B
B is correct
upvoted 1 times
...
CosminCof
4 years, 7 months ago
the right answer is B
upvoted 2 times
...
szefco
4 years, 11 months ago
B is correct answer: Line 6 gives error because constructor should be nested_type, so this line should be: n_table1 nested_typ := nested_typ('AB1','AB2','AB3') Line 12: you can assign 2 VARRAY variables only if they have matching data types, not matching data types of elements (varchar2(15)).
upvoted 1 times
chaoyuim
4 years, 11 months ago
n_table1 nested_typ := nested_typ('AB1','AB2','AB3') ---- wrong should be : n_table1 nested_typ := nested_typ( varchar_type1('AB1','AB2','AB3') );
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 ...