Oracle Database 11g: Program with PL/SQL (1Z1-144) Free Practice Test
Question 1
Examine the following block of code:

Which line in the above code would result in errors upon execution?

Which line in the above code would result in errors upon execution?
Correct Answer: A
Question 2
Which statement is true about transactions in PL/SQL?
Correct Answer: D
Question 3
Examine the following partial declare section from a block of PL/SQL code

Which line(s) in the above code are NOT valid? (Choose all that apply.)

Which line(s) in the above code are NOT valid? (Choose all that apply.)
Correct Answer: B,C
Question 4
View the Exhibit and examine the code and its outcome on execution:

What would be the effect on the two procedures if the value of debug is set to false? (Choose two.)

What would be the effect on the two procedures if the value of debug is set to false? (Choose two.)
Correct Answer: A,B
Question 5
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?

Which statement is true about the execution of the code if the query in the PL/SQL block returns no rows?
Correct Answer: A
Question 6
Examine the following partial code:

Which statement is correct about the unnamed block of code at the end of a package body?

Which statement is correct about the unnamed block of code at the end of a package body?
Correct Answer: C
Question 7
Which two guidelines are recommended by Oracle to reduce invalidation of dependent objects? (Choose two.)
Correct Answer: A,B
Question 8
Which statements are true about the WHEN OTHERS exception handler? (Choose all that apply)
Correct Answer: B
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 9
Which two statements are true about the PL/SQL initialization parameters? (Choose two.)
Correct Answer: B,D
Question 10
View Exhibit1 and examine the structure of the employees table.

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. You issue the following command: You issue the following command:

SQL_EXEC sal_5tatus ('MY_DIR', 'EMPREPORT.TXT')
What is the outcome?

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. You issue the following command: You issue the following command:

SQL_EXEC sal_5tatus ('MY_DIR', 'EMPREPORT.TXT')
What is the outcome?
Correct Answer: C