Summer Sale - Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: dpt65

1z0-144 Questions and Answers

Note! Following 1z0-144 Exam is Retired now. Please select the alternative replacement for your Exam Certification.

1z0-144 Questions and Answers

Question # 6

Examine the following code:

The above code generates an error on execution.

What must you do to ensure that the code executes successfully?

A.

Use the TO_DATE function in line 2.

B.

Use the TO_DATE function in line 7.

C.

Use the TO_NUMBER function in line 6.

D.

Use both the TO_DATE function in line 2 and the TO_NUMBER function in line 6.

Full Access
Question # 7

Which two statements are true about anonymous blocks and named subprograms?

(Choose two)

A.

Subprograms are by default executed with definer's rights.

B.

The declare section is optional for both anonymous blocks and subprograms.

C.

Both anonymous blocks and subprograms execute by default with invoker's rights.

D.

The declare section is mandatory for anonymous blocks and optional for subprograms.

Full Access
Question # 8

View Exhibit1 and examine the structure of the employees table.

User SCOTT needs to generate a text report that contains the names of all employees and their salaries.

Examine the following commands issued by the DBA:

SQL_CREATE DICTORY my_dir AS '/temp/my_files* ;

SQL_GRANT WRITE ON DIRECTORY my_dir TO SCOTT;

View Exhibit2 and examine the procedure code. You issue the following command:

You issue the following command:

SQL_EXEC sal_5tatus ('MY_DIR', ‘EMPREPORT.TXT')

What is the outcome?

A.

It executes successfully and creates the report.

B.

It gives an error because the text file should be opened in append mode.

C.

It gives an error because the "no data found" condition is not handled to come out of the loop.

D.

It gives an error because user SCOTT should be granted both read and write privileges to the directory alias.

E.

It executes but no data is written to the text file because the FFLUSH subprogram is not used to write all the data buffered in memory to a file.

Full Access
Question # 9

Which two statements are true about the PL/SQL initialization parameters? (Choose two.)

A.

To use native code compilation, PLSQL_OPTIMIZE_I.EVEL should be set to a value less than or equal to l.

B.

The default value of 2 for PLSQL_OPTIMI2E_LEVEL allows the compiler to rearrange code for better performance.

C.

Setting PLSQL_CODE_TYPE to native provides the greatest performance gains only for computation-intensive procedural operations.

D.

Changing the value of the PLSQL_CODE_TYPE parameter affects all the PL/SQL library units that have already been compiled

Full Access
Question # 10

View the Exhibit to examine the PL/SQL block.

Which statement is true about the execution of the PL/SQL block?

A.

It executes successfully and gives the desired output.

B.

It does not execute because the definition of type population is indexed by VARCHAR2.

C.

It executes, and the string keys of an associative array are not stored in creation order, but in sorted order.

D.

It does not execute because the value that is once assigned to the element of the associative array cannot be changed.

Full Access
Question # 11

Which statement is true about transactions in PL/SQL?

A.

A transaction can span multiple blocks.

B.

A block can contain only a single transaction.

C.

SERVERPOINTS cannot be created in a PL/SQL block.

D.

The END keyword signals the end of a PL/SQL block and automatically commits the transaction in the block.

Full Access
Question # 12

View the Exhibit to examine the PL/SQL code.

SERVEROUTPUT is on for the session.

Which statement is true about the execution of the code?

A.

The execution fails because of the misplaced else clause.

B.

The execution is successful even if there is no employee with EMPLOYEE_ID 115.

C.

The execution falls and throws exceptions if no employee with EMPLOYEE_ID us is found.

D.

The execution is successful, but it displays an incorrect output if no employee with EMPLOYEE_ID 115 is found.

Full Access
Question # 13

Which two statements are true about the handling of internally defined or user-defined PL7SQL exceptions? (Choose two.)

A.

Add exception handlers whenever errors occur.

B.

An exception handler should commit the transaction.

C.

Handle named exceptions whenever possible instead of using when others in exception handlers.

D.

Instead of adding exception handlers to your PL/SQL block, check for errors at every point where they may occur.

Full Access
Question # 14

You execute the following block of code:

Which statement is true about the outcome?

A.

Both Output statements show different values.

B.

Both output statements show exactly the same values.

C.

It gives an error because the nested blocks are not labeled.

D.

It gives an error because the V_CUSTOMER variable have different types in the nested blocks

Full Access
Question # 15

Which two tasks should be created as functions instead of as procedures? (Choose two.)

A.

Reference host or bind variables in a PL7SQL block of code

B.

Tasks that compute and return multiple values to the calling environment

C.

Tasks that compute a value that must be returned to the calling environment

D.

Tasks performed in SQL that increase data independence by processing complex data analysis within the Oracle server, rather than by retrieving the data into an application

Full Access