we provide Vivid Oracle 1Z0-144 actual exam which are the best for clearing 1Z0-144 test, and to get certified by Oracle Oracle Database 11g: Program with PL/SQL. The 1Z0-144 Questions & Answers covers all the knowledge points of the real 1Z0-144 exam. Crack your Oracle 1Z0-144 Exam with latest dumps, guaranteed!

Q11. View the exhibit and examine the structure of the EMPLOYEE table. 

EMPLOYEE_SEQ is an existing sequence. 

Examine the following block of code: 

Which statement is true about the above block of code? 

A. It consists of two transactions 

B. It consists of a single transaction, 

C. The data is automatically committed after the block execution ends, 

D. It gives an error on execution because sequences cannot be used in anonymous blocks. 

Answer:


Q12. View the Exhibit and examine the code. 

Why does the code give an error on execution? 

A. because the WORD_LIST variable is not visible in procedure wording 

B. because the lexicon variable is not visible in procedure ADD_ENTRY 

C. because the lexicon variable is not initialized in procedure wording 

D. because the WORD_LIST parameter in out mode cannot be of a record data type 

Answer:


Q13. Examine the following PL/SQL code: 

Which statement is true about the execution of the code if the query in the PL/SQL block returns no rows? 

A. The program abruptly terminates and an exception is raised. 

B. The program executes successfully and the output is No ROWS_FOUND. 

C. The program executes successfully and the query fetches a null value in the V_LNAME variable. 

D. Program executes successfully, fetches a NULL value in the V_LNAME variable and an 

exception is raised. 

Answer:


Q14. /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 pubiic: 

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. 

Answer:


Q15. Examine the following package specification. 

SQL>CREATE OR REPLACE PACKAGE emp_pkf IS 

PROCEDURE search_emp (empdet NUMBER); 

PROCEDURE search_emp (empdet DATE); 

PROCEDURE search_emp (empdet NUMBER); RETURN VERCHAR2 

PROCEDURE search_emp (empdet NUMBER); RETURN DATE 

END emp_pkg 

The package is compiled successfully 

Why would it generate an error at run tune? 

A. Because function cannot be overload 

B. Because function cannot differ only in return type. 

C. Because all the functions and procedures In the package cannot have the same number of parameters with the same parameter name 

D. Because the search EMP (EMPDET NUMBER) procedure and the SEARCH_DEPT (EMPDET NUMBER) cannot have identical parameter names and data types 

Answer:


Q16. View the exhibit and examine the structure of the EMPLOYEES table 

The salary of EMPLOYEE_ID 195 is 2800. 

You execute the following code 

What is the outcome? 

A. It gives an error because only the innermost block is labeled. 

B. It gives an error because the same variable name cannot be used across all the nested blocks. 

C. It executes successfully and displays the resultant values in the following sequence-1000, 2800 50000, 2800. 

D. It executes successfully and displays the resultant values in the following sequence: 1000, 2800, 50000, 1000. 

Answer:


Q17. Which two statements are true about triggers? (Choose two.) 

A. All the triggers that are created on a table cannot be disabled simultaneously. 

B. Any user who has the alter privilege on a table can create a trigger using that table. 

C. Oracle provides a two-phase commit process whether a trigger updates tables in the local database or remote tables in a distributed database. 

D. Triggers become invalid if a dependent object, such as 3 stored subprogram that is invoked from the trigger body is modified, and have to be manually recompiled before the next invocation. 

Answer: C,D 


Q18. Examine the following code that you plan to execute: 

What correction should be performed in the above code? 

A. The PROC2 procedure code should be defined in the package body. 

B. The PROC3 procedure should be declared in the package specification. 

C. The PROC3 procedure header should be declared at the beginning of the package body. 

D. The variable x must be declared in the package body and removed from the specification, 

Answer: A,B 


Q19. View Exhibit1 and examine the structure of the EMP table. 

View Exhibit2 and examine the code created by the user SCOTT: 

SCOTT grants the necessary privileges to green to access the EMP table and execute the package. 

Examine the following sequence of activities: 

SCOTT starts a session and issues the SQL>EXEC CURS_PKG.OPEN command. 

SCOTT then issues the SQL>EXEC CURS_PKG.NEXT command. 

green starts a session while SCOTT’s session is running and issues THE SQL>EXEC 

CURS_PKG.NEXT command. 

SCOTT issues the SQI>>EXEC SCOTT.CURS_PKG.NEXT command. 

The EMP table contains sequential EMPNOS from 100 through 108. 

Which statement correctly describes the output? 

A. SCOTT’s session shows the EMPNO 100, GREEN'S session shows an error, and SCOTT’s session shows an error. 

B. SCOTT’s session shows the EMPNO 100, GREEN'S session shows EMPNO 100, and SCOTT’s session shows the EMPNO 101. 

C. SCOTT’s session shows the EMPNO 100, GREEN'S session shows an error, and SCOTT’s session shows the second EMPNO 101. 

D. SCOTT’s session shows the EMPNO 100, GREEN'S session shows EMPNO 101, and SCOTT’s session shows the second EMPNO 102. 

Answer:


Q20. Examine the following PL/SQL code: 

The server output is on for the session. Which statement is true about the execution of the code? 

A. The code executes successfully and gives the desired output. 

B. The code generates an error because the EMP_RECORD variable is not declared. 

C. The code generates an error because the cursor is not opened before the FOR loop. 

D. The code generates an error because the loop does not have the exit when clause. 

Answer: