Labour Day Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

Exactprep 1z0-144 Questions

Page: 4 / 4
Total 103 questions

Oracle Database 11g: Program with PL/SQL Questions and Answers

Question 13

Identify the scenario in which you would use the current of clause for an update or delete statement to rows fetched from a cursor.

Options:

A.

when you want to lock the rows fetched by the cursor

B.

when you want to update or delete the result set without affecting the rows in the table

C.

when you want the database not to wait if the requested rows are locked by another user

D.

when you want to ensure that the current rows fetched by the cursor are updated or deleted

Question 14

In which of the following scenarios would you recommend using PL/SQL records?

Options:

A.

when you want to retrieve an entire row from a table and perform calculations

B.

when you know the number of elements in advance and the elements are usually accessed sequentially

C.

when you want to create a separate lookup table with multiple entries for each row of the main table, and access it through join queries

D.

when you want to create a relatively small lookup table, where the collection can be constructed in memory each time a subprogram is invoked

Question 15

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?

Options:

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.

Page: 4 / 4
Total 103 questions