最新的Oracle Database: Advanced PL/SQL - 1z1-148免費考試真題
Examine the structure of the EMP table:

Examine this code and statements:

Which statement is true?

Examine this code and statements:

Which statement is true?
正確答案: A
You create this package and procedure:

Which two blocks will execute without errors? (Choose two.)


Which two blocks will execute without errors? (Choose two.)

正確答案: B,D
Examine this declaration section:

Which two executable sections will display the message 'Summary is null'?

Which two executable sections will display the message 'Summary is null'?
正確答案: B,D
With SERVEROUTPUT enabled, you successfully create the package YEARLY_LIST:

Examine this code:

You want to display the contents of CREATE_LIST.
Which two lines need to be corrected in the PL/SQL block? (Choose two.)

Examine this code:

You want to display the contents of CREATE_LIST.
Which two lines need to be corrected in the PL/SQL block? (Choose two.)
正確答案: B,D
Examine this code:

The anonymous block fails this error stack:

Which two changes, when separately applied, would prevent these errors from occurring?

The anonymous block fails this error stack:

Which two changes, when separately applied, would prevent these errors from occurring?
正確答案: A,D
Which two can be used to find details of parameters for overloaded PL/SQL routines?
正確答案: B,C
You execute this PL/SQL block:

What will be the outcome?

What will be the outcome?
正確答案: E
Examine this function that is using the RESULT_CACHE clause:

After executing the function twice, passing 100 and 150 as input parameters, the LOCATIONS table is updated for LOCATION_ID = 100.
Which statement is correct if the function is called again, passing 150 as the input parameter?

After executing the function twice, passing 100 and 150 as input parameters, the LOCATIONS table is updated for LOCATION_ID = 100.
Which statement is correct if the function is called again, passing 150 as the input parameter?
正確答案: A
Refer to the Exhibit.

Examine this procedure created in a session where PLSQL_OPTIMIZE_LEVEL =2:

PL/SQL tracing in enabled in a user session using this command:
EXEC DBMS_TRACE.SET_PLSQL_TRACE (DBMS_TRACE.TRACE_ENABLED_LINES)
The procedure is executed using this command:
EXEC PRC_1
Examine the exhibit for the content of the PLSQL_TRACE_EVENTS table.
Why is tracing excluded from the PLSQL_TRACE_EVENTS table?

Examine this procedure created in a session where PLSQL_OPTIMIZE_LEVEL =2:

PL/SQL tracing in enabled in a user session using this command:
EXEC DBMS_TRACE.SET_PLSQL_TRACE (DBMS_TRACE.TRACE_ENABLED_LINES)
The procedure is executed using this command:
EXEC PRC_1
Examine the exhibit for the content of the PLSQL_TRACE_EVENTS table.
Why is tracing excluded from the PLSQL_TRACE_EVENTS table?
正確答案: A
Examine the EMP table:
CREATE TABLE EMP (EMPNO NUMBER(4) NOT NULL, ENAME VARCHAR2(10));
Examine this PL/SQL procedure:

Which is the correct replacement for the assignment to variable l_sql to avoid SQL injection?
CREATE TABLE EMP (EMPNO NUMBER(4) NOT NULL, ENAME VARCHAR2(10));
Examine this PL/SQL procedure:

Which is the correct replacement for the assignment to variable l_sql to avoid SQL injection?
正確答案: C