New Year Special Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: scxmas70

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

1z0-144 Exam Dumps - Oracle Database 11g: Program with PL/SQL

Go to page:
Question # 9

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

You create the following trigger to ensure that customers belonging to category "A" or "B" in the customer table can have a credit limit of more than 8000.

What is the outcome?

A.

The trigger is fired, a message is displayed, and the update is successful

B.

The trigger is fired and a message is displayed, but the update is rolled back.

C.

The trigger is not fired because the when clause should be used to specify the condition, however, the update is successful.

D.

The trigger is not fired because column names must be specified with the update event to identify which columns must be changed to cause the trigger to fire, however, the update is successful.

Full Access
Question # 10

Examine the following snippet of PL/SQL code:

View the exhibit for table description of EMPLOYEES table. The EMPLOYEES table has 200 rows.

Identify open statement for opening the cursor that fetches the result as consisting of employees with JOB_ID as ‘ST_CLERK’ and salary greater than 3000.

A.

OPEN c1 (NULL, 3000);

B.

OPEN c1 (emp_job, 3000);

C.

OPEN c1 (3000, emp_salary);

D.

OPEN c1 (‘ST_CLERK’, 3000)

E.

OPEN c1 (EMP_job, emp_salary);

Full Access
Question # 11

Which two statements are true about PL/SQL exception propagation? (Choose two.)

A.

The exception reproduces Itself In successive enclosing blocks until a handler is found.

B.

Exception- can propagate across the remote subprograms that are called through database links.

C.

If you declare a local exception in a subblock and a global exception in the outer block, the local declaration overrides the global exception.

D.

If you declare a local exception in a subblock and a global exception in the outer block, the global declaration overrides the local exception.

Full Access
Question # 12

View the Exhibit and examine the blocks of code that you plan to execute.

Which statement is true about the blocks of code?

A.

All the blocks execute successfully and the anonymous block displays

1

2

3

cant: 45

45

cnt: 45

B.

All the blocks execute successfully and the anonymous block displays

1

2

3

cut: 0

45

cart: 1

C.

The anonymous block gives an error because the function invocation in line 2 is not valid.

D.

The procedure creation gives an error because the function invocation in line 1 is not valid.

Full Access
Question # 13

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

The salary of EMPLOYEE_ID 195 is 2800.

You execute the following code

What is the outcome?

A.

It gives an error because only the innermost block is labeled.

B.

It gives an error because the same variable name cannot be used across all the nested blocks.

C.

It executes successfully and displays the resultant values in the following sequence- 1000, 2800 50000, 2800.

D.

It executes successfully and displays the resultant values in the following sequence: 1000, 2800, 50000, 1000.

Full Access
Question # 14

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

Execute the following block of code:

What is the outcome?

A.

It gives an error because group functions cannot be used in anonymous blocks

B.

It executes successfully and correctly gives the result of the sum of salaries in department 60.

C.

It executes successfully and incorrectly gives the result of the sum of salaries in department 60.

D.

It gives an error because the variable name and column name are the same in the where clause of the select statement.

Full Access
Question # 15

View the exhibit to examine the PL/SQL code.

Which statement is true about the exception handlers in the PL/SQL code?

A.

All the exceptions in the code are trapped by the exception handler.

B.

All the "no data found" errors in the code are trapped by the exception handler.

C.

The PL/SQL program does not execute because an exception is not declared in the declare section.

D.

An exception handler in the code traps the "no data found" error after executing the handler code and the program flow returns to the next line of code.

Full Access
Go to page: