1Z0-146 | 10 Tips For Renewal 1Z0-146 exam question


Q31. 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. 

Answer:

Q32. Identify three guidelines for the DBMS_ASSERT package. (Choose three.) 

A. Prefix all calls to DBMS_ASSERT with the SYS schema name. 

B. Embed DBMS_ASSERT verification routines inside the injectable string. 

C. Escape single quotes when you use the ENQUOTE_LITERAL procedure. 

D. Define and raise exceptions explicitly to handle DBMS_ASSERT exceptions. 

E. Prefix all calls to DBMS_ASSERT with a schema name that owns the subprogram that uses the DBMS_ASSERT package. 

Answer: A,C,D 

Q33. Examine the code in the following PL/SQL block: 

DECLARE 

TYPE NumList IS TABLE OF INTEGER; 

List1 NumList := NumList(11,22,33,44); 

BEGIN 

List1.DELETE(2); 

DBMS_OUTPUT.PUT_LINE 

( 'The last element# in List1 is ' || List1.LAST || 

' and total of elements is '||List1.COUNT); 

List1.EXTEND(4,3); 

END; 

Which two statements are true about the above code? (Choose two.) 

A. LAST and COUNT give different values. 

B. LAST and COUNT give the same values. 

C. The four new elements that are added contain the value 33. 

D. The four new elements that are added contain the value 44. 

Answer: A,C 

Q34. Which two types of metadata can be retrieved by using the various procedures in the DBMS_METADATA PL/SQL package? (Choose two.) 

A. report of invalidated objects in a schema 

B. report of statistics of an object in the database 

C. DDL for all object grants on a table in the database 

D. data definition language (DDL) for all objects in a schema 

Answer: C,D 

Q35. Which two statements are true about BFILES? (Choose two.) 

A. BFILES support only sequential reads. 

B. BFILES can be used as attributes in an object type. 

C. When LOB is deleted, the corresponding physical file is automatically deleted. 

D. The RMAN backup automatically backs up the BFILE locators and the corresponding physical files. 

E. The physical file corresponding to a BFILE locator must reside on the file system that is accessible from the server where the database exists. 

Answer: B,E 

Q36. The database instance was started up using the automatic memory management feature. No value was set for the RESULT_CACHE_MAX_SIZE parameter. 

Examine the following initialization parameter settings for your database: 

MEMORY_TARGET = 500M 

RESULT_CACHE_MODE = MANUAL 

You execute a query by using the result_cache hint. Which statement is true in this scenario? 

A. The query results are not stored because no memory is allocated for the result cache. 

B. The query results are stored and 0.5% of the memory target is allocated to the result cache. 

C. The query results are stored and 0.25% of the memory target is allocated to the result cache. 

D. The query results are not stored because the RESULT_CACHE_MODE parameter is not set to FORCE. 

Answer:

Q37. Which two statements are true about the usage of the DBMS_DESCRIBE.DESCRIBE_PROCEDURE procedure? (Choose two.) 

A. You can describe remote objects. 

B. You can describe anonymous PL/SQL blocks. 

C. You can describe a stored procedure, stored function, packaged procedure, or packaged function. 

D. You can obtain information about the position, name, and data type of the arguments of a procedure. 

Answer: C,D 

Q38. Examine the structure of the TEXT_TAB table. Name Null? Type 

TEXT_ID NUMBER 

DOC1 CLOB 

DOC2 CLOB 

You issue the following INSERT commands: 

INSERT INTO text_tab VALUES (1, 'This is line 1',null); 

INSERT INTO text_tab VALUES (2, 'This is line 1','This is line 2'); 

Then you execute the following block of the PL/SQL code: 

DECLARE 

vc1 VARCHAR2(1000):= 'This is the preface' 

lb1 CLOB; 

lb2 CLOB; 

BEGIN 

SELECT doc1 INTO lb1 FROM text_tab WHERE text_id=1; 

SELECT doc1 || doc2 INTO lb1 FROM text_tab WHERE text_id=2; 

lb2 := vc1|| lb1; 

UPDATE text_tab SET doc2 = lb2 WHERE text_id = 1; 

END; 

What is the outcome? 

A. It executes successfully. 

B. It gives an error because VARCHAR2 should be explicitly converted to CLOB. 

C. It gives an error because CLOB variables should be initialized to EMPTY_CLOB(). 

D. It gives an error because the concatenation operator cannot be used with the CLOB data type. 

Answer:

Q39. Which two guidelines should be considered when designing and using cursors in a PL/SQL block? (Choose two.) 

A. When fetching from a cursor, fetch into a record. 

B. When fetching from a cursor, fetch required values into individually declared variables. 

C. Whenever possible, explicitly declare the cursor and use the OPEN, FETCH, and CLOSE statements to manipulate the cursor instead of using the cursor FOR loop. 

D. Whenever possible, use the cursor FOR loop instead of explicitly declaring the cursor and using the OPEN, FETCH, and CLOSE statements to manipulate the cursor. 

Answer: A,D 

Q40. The user OE is working on an app lication that needs to call an exte rnal C program multiple times in a single session. However, the extproc.exe file on the server gets accidentally deleted after the OE user connected and made calls to the external C program. Wh ich statement is true about the current session by the OE user? 

A. The session can continue calling the external C program. 

B. The session can call the external C program after republishing it. 

C. The session receives an error for the next call to the external C program. 

D. The session terminates during the subsequent call to the external C program. 

Answer: