Question 13

View Exhibit1 and examine the structure of the employees table.
1Z0-144 dumps exhibit
User SCOTT needs to generate a text report that contains the names of all employees and their salaries.
Examine the following commands issued by the DBA:
SQL_CREATE DICTORY my_dir AS '/temp/my_files* ;
SQL_GRANT WRITE ON DIRECTORY my_dir TO SCOTT;
View Exhibit2 and examine the procedure code.
1Z0-144 dumps exhibit
You issue the following command: You issue the following command:
SQL_EXEC sal_5tatus ('MY_DIR', ‘EMPREPORT.TXT')
What is the outcome?

Correct Answer:A

Question 14

User SCOTT has been granted CREATE ANY TRIGGER AND ALTER ANY TABLE by the DBA. HR is an existing schema in the database.
SCOTT creates the following trigger:
CREATE OR REPLACE TRIGGER drop_trigger BEFORE DROP ON hr.SCHEMA
BEGIN
RAISE_APPLICATION_ERROR (-20000, ‘Cannot drop object');
END:
SCOTT does not grant the execute privilege on this trigger to any other users.
For which user(s) would this trigger fire by default when they drop an object in the hr schema?

Correct Answer:A

Question 15

Examine the following partial code:
1Z0-144 dumps exhibit
Which statement is correct about the unnamed block of code at the end of a package body?

Correct Answer:C

Question 16

Which two tasks should be created as functions instead of as procedures? (Choose two.)

Correct Answer:AC
Explanation/Reference:
Functions are used to return a value. Functions must return only a single value.
Procedure are used to perform an action.
Both functions and procedures are using to do a special task or action. In functions it is
must to return a single value, where as in procedures it’s not compulsory

Question 17

Which two statements are true about the usage of the cursor for loops? (Choose two.)

Correct Answer:BD

Question 18

Which statements correctly describe the features of functions and procedures? (Choose all that apply.)

Correct Answer:A
Reference: http://docs.oracle.com/cd/B19306_01/appdev.102/b14261/subprograms.htm (using the return statement)

START 1Z0-144 EXAM