Oracle Database: Advanced PL/SQL (1z0-148) Free Practice Test
Question 1
You are logged on to the SCOTT schema and the schema has EMP and DEPT tables already created:
Examine this PL/SQL procedure:

Which PL/SQL block will raise an exception?
Examine this PL/SQL procedure:

Which PL/SQL block will raise an exception?
Correct Answer: B
Question 2
Examine the code:

Which two subprograms will be created successfully?

Which two subprograms will be created successfully?
Correct Answer: B,C
Question 3
Examine this code:

Assuming the default edition is ORA$BASE, what is the result of the last execution of hello?

Assuming the default edition is ORA$BASE, what is the result of the last execution of hello?
Correct Answer: D
Question 4
Examine the incomplete code:

Which three lines of code must be added for it to successfully compile?

Which three lines of code must be added for it to successfully compile?
Correct Answer: A,D,E
Question 5
Examine these program units:

Which two blocks will execute successfully?

Which two blocks will execute successfully?
Correct Answer: B,D
Question 6
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?

Examine this PL/SQL block:

What is the result of executing this PL/SQL block with SERVEROUTPUT enabled?
Correct Answer: A
Question 7
Examine this Java method in class Employee, loaded into the Oracle database:
Public static int updateSalary (String name, float salary) {...}
Which PL/SQL specification can be used to publish this method?
Public static int updateSalary (String name, float salary) {...}
Which PL/SQL specification can be used to publish this method?
Correct Answer: A
Question 8
Which statement describes the plshprof command-line utility?
Correct Answer: A
Question 9
Which is the correct method for releasing unused money after deleting elements of a collection?
Correct Answer: C
Question 10
Which statement is true about internal and external LOBs?
Correct Answer: B,D