View Exhibit1 and examine the structure of the EMPLOYEES and DEPARTMENTS tables
existing in your schema.
View Exhibit2 and examine the PL/SQL block that you execute to display the department-wise
incremented salary for all the departments in your company.
The code generates an error on execution.
What correction should be done to ensure the code executes successfully?
A.
The cursor variable parameter should be passed in IN OUT mode.
B.
The cursor variable should be defined as a strong REF CURSOR type.
C.
The cursor variable name passed as actual and formal parameters should be identical.
D.
The %NOTFOUND cursor attribute cannot be used with the cursor variables and should be
replaced with a user defined exception.
A.
http://docs.oracle.com/cd/B14117_01/appdev.101/b10807/13_elems033.htm
When you declare a cursor variable as the formal parameter of a subprogram that opens the cursor variable, you must specify the IN OUT mode. That way, the subprogram can pass an open cursor back to the caller.
A
A.
OPEN-FOR Statement
The OPEN-FOR statement executes the query associated with a cursor variable.
When you declare a cursor variable as the formal parameter of a subprogram that opens the cursor variable, you must specify the IN OUT mode. That way, the subprogram can pass an open cursor back to the caller.
https://docs.oracle.com/cd/B19306_01/appdev.102/b14261/openfor_statement.htm