Oracle Database 11g: Program with PL/SQL (1Z0-144) Free Practice Test
Question 1
Which two statements are true about statement-level and row-level triggers? (Choose two.)
Correct Answer: C,D
Question 2
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?

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?
Correct Answer: C
Question 3
View Exhibit1 and examine the structure of the EMP table.

View Exhibit2 and examine the PIVSQL block of code.

What is the outcome?

View Exhibit2 and examine the PIVSQL block of code.

What is the outcome?
Correct Answer: E
Question 4
Examine the following PL/SQL code:

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

The server output is on for the session. Which statement is true about the execution of the code?
Correct Answer: C
Question 5
Which statements are true about database triggers? (Choose all that apply.)
Correct Answer: A,D
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 6
Examine the following PL/SQL code:

Which statement is true about the fetch statements in the PL/SQL code?

Which statement is true about the fetch statements in the PL/SQL code?
Correct Answer: C
Question 7
Which system events can be used to create triggers that fire both at database and schema levels? (Choose all that apply)
Correct Answer: A,D
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 8
View the Exhibit and examine the structure of the employees table.

Execute the following block of code:

What is the outcome?

Execute the following block of code:

What is the outcome?
Correct Answer: A
Question 9
View the Exhibit and examine the package code created by SCOTT. The execute privilege on this package is granted to green.

Examine the following sequence of commands issued by SCOTT:

What is the outcome?

Examine the following sequence of commands issued by SCOTT:

What is the outcome?
Correct Answer: C
Question 10
View the Exhibit and examine the structure of the employees table.

Examine the following block of code:

What is the outcome when the above code is executed?

Examine the following block of code:

What is the outcome when the above code is executed?
Correct Answer: D