nerdexam
Oracle

1Z0-146 · Question #51

Examine the structure of the DEPARTMENTS table. Name Null? Type -------------------- ------------ ---------- DEPARTMENT_ID NOT NULL NUMBER(4) DEPARTMENT_NAME NOT NULL VARCHAR2(30) LOCATION_ID…

The correct answer is D. The package executes successfully, but does not pass the required data to the host variable because. See the full explanation below for the reasoning.

Question

Examine the structure of the DEPARTMENTS table. Name Null? Type -------------------- ------------ ---------- DEPARTMENT_ID NOT NULL NUMBER(4) DEPARTMENT_NAME NOT NULL VARCHAR2(30) LOCATION_ID NUMBER(4) View the Exhibit and examine the code that you plan to use for creating a package to obtain the details of an employee using a host variable on the client side. In SQL*Plus, you plan to use the following commands:

SQL> VARIABLE x REFCURSOR SQL> EXECUTE emp_data.get_emp(195,:x) SQL> PRINT x Which statement is true about the above scenario?

Exhibit

1Z0-146 question #51 exhibit

Options

  • AThe package executes successfully and passes the required data to the host variable.
  • BThe package specification gives an error on compilation because cursor variable types cannot be
  • CThe package specification gives an error on compilation because the cursor variable parameter was
  • DThe package executes successfully, but does not pass the required data to the host variable because

How the community answered

(33 responses)
  • A
    3% (1)
  • B
    6% (2)
  • C
    9% (3)
  • D
    82% (27)

Community Discussion

No community discussion yet for this question.

Full 1Z0-146 Practice