Winter Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: netbudy65

Note! Oracle has retired the 1z0-144 Exam Contact us through Live Chat or email us for more information.

1z0-144 Oracle Database 11g: Program with PL/SQL Questions and Answers

Questions 4

Which two statements are true about the continue statement? (Choose two.)

Options:

A.

The PL/SQL block execution terminates immediately.

B.

The CONTINUE statement cannot appear outside a loop.

C.

The loop completes immediately and control passes to the statement after end loop.

D.

The statements after the continue statement in the iteration are executed before terminating the LOOP.

E.

The current iteration of the loop completes immediately and control passes to the next iteration of the loop

Buy Now
Questions 5

View the Exhibit to examine the PL/SQL block.

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

Options:

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.

Buy Now
Questions 6

View the Exhibit and examine the structure of the customer table.

You need to create a trigger to ensure that customers in category “A” and “B” have a credit limit of more than 8000.

Examine the following trigger.

Which statement is correct about the outcome of this trigger?

Options:

A.

It compiles successfully and fires whenever the specified condition is met.

B.

It compiles successfully but does not fire even when the condition is met

C.

It gives an error on compilation because the new qualifier is prefixed with a colon.

D.

It gives an error on compilation because the new qualifier can be used only in row-level triggers.

Buy Now
Questions 7

View Exhibit 1 and examine the structure of the EMP table.

View Exhlbit2 and examine the code of the packages that you have created.

You issue the following command:

SQL> DROP PACKAGE manage_emp;

What is the outcome?

Options:

A.

It drops both the MANAGE_EMP AND EMP__DET packages because of the cascading effect.

B.

It drops the MANAGE_EMP package and invalidates only the body for the EMP_DET package.

C.

It returns an error and does not drop the MAMAGE_EMP package because of the cascading effect.

D.

It drops the MANAGE_EMP package and invalidates both the specification and body for the EMP_DET package.

Buy Now
Questions 8

Examine the following PL/SQL code:

Which statement is true about the fetch statements in the PL/SQL code?

Options:

A.

Each fetch retrieves the first row and assigns values to the target variables.

B.

Each fetch retrieves the next consecutive row and assigns values to the target variables.

C.

They produce an error because you must close and reopen the cursor before each fetch -statement.

D.

Only the first fetch retrieves the first row and assigns values to the target variables- the second produces an error.

Buy Now
Questions 9

Identify situations in which the DBMS_SQL package is the only applicable method of processing dynamic SQL. (Choose all that apply.)

Options:

A.

When a query returns multiple rows

B.

When a column name in a where clause is unknown at compile time.

C.

When the number of columns selected in a query is not known until run time

D.

When a table needs to be created based on an existing table structure at run time

E.

When privileges need to be granted to a new user to access an existing schema at run time

Buy Now
Questions 10

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.

Buy Now
Questions 11

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

Options:

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.

Buy Now
Questions 12

View the exhibit and examine the structure of the products table.

Examine the following code

Which statement is true when the procedure DELETE_DETAILS is invoked?

Options:

A.

It executes successfully but no error messages get recorded in the DEBUG_OUTPUT table

B.

It executes successfully and any error messages get recorded in the DEBUG_OUTPUT table.

C.

It gives an error because PRAGMA AUTONOMOUS_TRANSACTION can be used only in packaged procedures.

D.

It gives an error because procedures containing PRAGMA AUTONOMOUS_TRANSACTION cannot be called from the exception section.

Buy Now
Questions 13

View the Exhibit and examine the structure of the EMP table.

You want to create two procedures using the overloading feature to search for employee details based on either the employee name or employee number.

Which two rules should you apply to ensure that the overloading feature is used successfully? (Choose two.)

Options:

A.

The procedures can be either stand-alone or packaged.

B.

The procedures should be created only as packaged subprograms

C.

The procedures should be created only as stand-alone subprograms

D.

Each subprogram's formal parameters should differ in both name and data type.

E.

The formal parameters of each subprogram should differ in data type but can use the same names.

Buy Now
Questions 14

In which of the following scenarios would you recommend using associative arrays?

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 on memory each time a subprogram is invoked.

Buy Now
Questions 15

Which two statements are true about statement-level and row-level triggers? (Choose two.)

Options:

A.

A row trigger fires once even if no rows are affected.

B.

A statement trigger fires once even if no rows are affected.

C.

Row triggers are useful if the trigger action depends on the data of rows that are affected or on data that is provided by the triggering event itself.

D.

Statement triggers are useful if the trigger action depends on the data of rows that are affected or on data that is provided by the triggering event itself.

Buy Now
Exam Code: 1z0-144
Exam Name: Oracle Database 11g: Program with PL/SQL
Last Update: Nov 21, 2024
Questions: 103