1Z0-146 | The Latest Guide To 1Z0-146 exam question


Q61. View Exhibit1 and examine the structure of the EMPLOYEES table. 

View the Exhibit2 and examine the PL/SQL block that you execute for displaying the last name and hire date of the employees in department ID 60. 

Which statement is true about the outcome? 

A. It generates an error because RECORD type cannot be used with varrays. 

B. It generates an error because BULK COLLECT cannot be used with varrays. 

C. It executes successfully only if department ID 60 has five or less than five employees. 

D. It executes successfully even if department ID 60 has more than five employees by dynamically extending the varray. 

Answer:

Q62. Which two statements are true about the context of an application? (Choose two.) 

A. It is attached to a session. 

B. It is owned by the user SYS. 

C. A user can change the context of his or her application. 

D. The PL/SQL package associated with the contex t must exist before the context is created. 

E. The predefined attributes in the USEREN V application context can be changed as per the requirements. 

Answer: A,B 

Q63. In which two situations is the body of a result-cached function executed? (Choose two.) 

A. if the memory allocated for the result cache is increased 

B. if a session on this database instance invokes the function with the same parameter values 

C. if the first time a session on this database instance invokes the function with a parameter value 

D. if a session executes a data manipulation language (DML) statement on a table or view that was specified in the RELIES_ON clause of a result-cached function 

Answer: C,D 

Q64. Examine the structure of the PRINT_MEDIA table: Name Null? Type 

ADVT_ID NUMBER ADVT_SOURCE CLOB Examine the following PL/SQL block: 

DECLARE 

lobloc CLOB; 

buffer VARCHAR2(100); 

amount NUMBER; 

offset NUMBER :=1; 

BEGIN 

buffer :='This is the second line of a new document' 

amount := LENGTH(buffer); 

SELECT advt_source INTO lobloc FROM print_media WHERE advt_id=2 FOR UPDATE; 

DBMS_LOB.WRITE(lobloc,amount,offset,buffer); 

COMMIT; 

END; 

What must be the value in the ADVT_SOURCE column for the above code to execute 

successfully? 

A. null 

B. an empty locator 

C. a non-NULL value 

D. either null or any non-NULL values 

Answer:

Q65. View the Exhibit and examine the structure of the EMPLOYEES table. 

Examine the following PL/SQL block for storing the salary of all sales representatives from the 

EMPLOYEES table in an associative array: 

1 DECLARE 

2 emp_cv SYS_REFCURSOR; 

3 TYPE list IS TABLE OF emp_cv; 

4 sals list; 

5 BEGIN 

6 OPEN emp_cv FOR SELECT salary FROM employees 

7 WHERE job_id = 'SA_REP' 

8 FETCH emp_cv BULK COLLECT INTO sals; 

9 CLOSE emp_cv; 

10 END; 

What should you correct in the above code to ensure that it executes successfully? 

A. Replace EMP_CV in line 3 with employees.salary%TYPE. 

B. Replace line 2 with TYPE refcur IS REF CURSOR; emp_cv refcur;. 

C. Replace BULK COLLECT in line 8 with the OPEN, FETCH, LOOP, and CLOSE statements. 

D. Replace line 2 with TYPE refcur IS REF CURSOR RETURN employees.salary%TYPE; emp_cv refcur;. 

Answer:

Q66. Which two statements are true about the extproc process? (Choose two.) 

A. It loads the dynamic library. 

B. It is started by the server process. 

C. It converts the C output back to PL/SQL. 

D. A single extproc process serves all user sessions. 

Answer: A,C 

Q67. Identify the component of the PL/SQL hierarchical profiler that uploads the result of profiling into database tables. 

A. the trace file component 

B. the analyzer component 

C. the shared library component 

D. the data collection component 

Answer:

Q68. Examine the section of code taken from a PL/SQL program: 

PROCEDURE p1 (x PLS_INTEGER) IS 

PRAGMA INLINE (p1, 'NO'); 

x:= p1(1) + p1(2) + 17; -- Call 1 

x:= p1(3) + p1(4) + 17; -- Call 2 

Call 1 and Call 2 are the comments for distinguishing the code. The PLSQL_OPTIMIZE_LEVEL parameter is set to 3. Which two statements are true in this scenario? (Choose two.) 

A. The calls to the P1 procedure are not inlined in the section commented as Call 1. B. The calls to the P1 procedure might be inlined in the section commented as Call 2. 

C. The calls to the P1 procedure are inlined in both the sections commented as Call 1 and Call 2. 

D. The calls to the P1 procedure are never inlined in both the sections commented as Call 1 and Call 2. 

Answer: A,B 

Q69. Which two statements are true about the OPEN and FILEOPEN routines in the DBMS_LOB package? (Choose two.) 

A. OPEN can be used to open only internal LOBs in the indicated mode. 

B. FILEOPEN can be used to open only external LOBs in the indicated mode. 

C. OPEN can be used to open internal and external LOBs in the indicated mode. 

D. FILEOPEN can be used to open internal and external LOBs in the indicated mode. 

Answer: B,C 

Q70. Which two statements are true about associative arrays and nested tables? (Choose two.) 

A. Only associative arrays can hold an arbitrary number of elements. 

B. Only nested tables can be used as column types in database tables. 

C. Both associative arrays and nested tables can hold an arbitrary number of elements. 

D. Both associative arrays and nested tables can be used as column types in database tables. 

Answer: B,C