exam questions

Exam 1z0-148 All Questions

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

Exam 1z0-148 topic 1 question 62 discussion

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

Examine the EMPLOYEE_IDS table its data:

Examine this PL/SQL block:

What is the result of executing this PL/SQL block with SERVEROUTPUT enabled?

  • A. It executes successfully and outputs: Fetched: 1011, JJONES, 3789 Fetched: 1012, SSMITH, -1
  • B. Compilation fails saying EMP_TAXID must be declared.
  • C. An exception is thrown at runtime saying EMP_TAXID is not visible.
  • D. It executes successfully and outputs: Fetched: 1011, JJONES, Fetched: 1012, SSMITH,
  • E. It executes successfully and outputs: Fetched: 1011, JJONES, -1
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
Katana is correct, the answer is not A. Try out the code. It's B.
upvoted 9 times
...
sudhirdavim
Highly Voted 4 years, 5 months ago
B is correct. https://livesql.oracle.com/apex/livesql/file/content_DQTGBA2NTXJT4B52WT7LZU6TX.html
upvoted 5 times
...
chrishillinger
Most Recent 2 years, 9 months ago
Selected Answer: B
B, invisible columns are not visible to the * selector
upvoted 1 times
...
certyk
4 years, 8 months ago
CURSOR c IS select * from TAB_XXX; --has a column1 invisible rec c%ROWTYPE; BEGIN OPEN C; LOOP FETCH c INTO rec; EXIT WHEN c%NOTFOUND; DBMS_OUTPUT.PUT_LINE(REC.column1); END LOOP; CLOSE c; END; PLS-00302: component 'column1' must be declared *Cause: Usually a PL/SQL compilation error. B correct
upvoted 4 times
...
Malvaras
4 years, 8 months ago
Correct answer is A
upvoted 1 times
...
Katana19
5 years, 6 months ago
guys, just write down that code !! you will not get A !!!!
upvoted 3 times
...
Wrath
5 years, 7 months ago
Answer Is A for Sure
upvoted 1 times
orakell
5 years, 6 months ago
It's B.
upvoted 5 times
...
...
Peekay
5 years, 10 months ago
Correct answer is A
upvoted 2 times
orakell
5 years, 6 months ago
It's B.
upvoted 6 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 ...