exam questions

Exam 1z0-144 All Questions

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

Exam 1z0-144 topic 1 question 19 discussion

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

/temp/my_files is an existing folder in the server, facultylist.txt is an existing text file in this folder.
Examine the following commands that are executed by the DBA:
SQL>CREATE DIRECTION my_dir AS /temp/my_files:
SQL>GRANT READ ON DIRECTORY my_dir To public:
View the Exhibit and examine the procedure created by user SCOTT to read the list of faculty names from the text file.

SCOTT executes the procedure as follows:

SQL>SET SERVEROUTPUT ON -
SQL>EXEC read_file (MY_DIR, FACULTYLIST.TXT)
What is the outcome?

  • A. It goes into an infinite loop.
  • B. It executes successfully and displays only the list of faculty names.
  • C. It does not execute and displays an error message because the end-of-file condition is not taken care of.
  • D. It executes successfully and displays the list of faculty names followed by a "no data found" error message.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
References:

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
Aditya
2 years, 9 months ago
D is correct
upvoted 1 times
abdullah_barham
1 year, 10 months ago
Why D is correct ??? , it supposes to be A. I tried it no error message appear
upvoted 1 times
abdullah_barham
1 year, 10 months ago
Sorry I mean it supposes B is the correct Answer, not A.
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