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

Note! 1z0-144 has been withdrawn.

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

Question # 6

View the Exhibit to examine the PL/SQL code.

1z0-144 question answer

The record for the employee with employee__id 100 in the employees table is as follows;

1z0-144 question answer

Identify the correct output for the code.

A.

King 17-JUN-87 1500

B.

King 17-JUN-87 24000

C.

King current sysdate 1500

D.

King current sysdate 24000

Full Access
Question # 7

View the exhibit to examine the PL/SQL code.

1z0-144 question answer

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
Question # 8

Examine the following PL/SQL code:

1z0-144 question answer

Which statement is true about the execution of the code if the query in the PL/SQL block returns no rows?

A.

The program abruptly terminates and an exception is raised.

B.

The program executes successfully and the output is No ROWS_FOUND.

C.

The program executes successfully and the query fetches a null value in the V_LNAME variable.

D.

Program executes successfully, fetches a NULL value in the V_LNAME variable and an exception is raised.

Full Access
Question # 9

View Exhibit1 and examine the structure of the employees table.

1z0-144 question answer

View Exhibit2 and examine the code.

1z0-144 question answer

What is the outcome when the code is executed?

A.

Both blocks compile and execute successfully when called.

B.

Both blocks compile successfully but the CALC_SAL procedure gives an error on execution.

C.

The CALC_SAL procedure gives an error on compilation because the amt variable should be declared in the RAISE_SALARY procedure.

D.

The CALC_SAL procedure gives an error on compilation because the RAISE_SALARY procedure cannot call the stand-alone increase function.

Full Access
Question # 10

Examine the following block of code:

1z0-144 question answer

Which line in the above code would result in errors upon execution?

A.

line 5

B.

line 8

C.

line 2

D.

line 7

Full Access
Question # 11

Examine the following code:

1z0-144 question answer

Which statement is true about the execution of the above code?

A.

It executes and displays null.

B.

It executes and the condition returns true.

C.

It executes and control goes to the else statement.

D.

It fails because no value is assigned to the v_myage variable.

Full Access
Question # 12

Which two statements are true about the instead of triggers? (Choose two.)

A.

Delete operations cannot be performed using the instead of triggers.

B.

The instead or triggers must be created to add or modify data through any view.

C.

The instead of triggers can be written only for views, and the before and after timing options are not valid.

D.

The check option for views is not enforced when Insertions or updates to the view are performed by using the instead of trigger.

Full Access
Question # 13

View Exhibit1 and examine the structure of the product table.

1z0-144 question answer

View Exhiblt2 and examine the procedure you created. The procedure uses the prod id to determine whether the list price is within a given range.

1z0-144 question answer

You then create the following trigger on the product table.

CREATE OR REPLACE TRIGGER check_price__trg

BEF0RE INSERT OR UPDATE OF prod_id, prod_list_price

ON product FOR EACH ROW

WHEN (nev.prod_id <> NVX(old.prod_id,0) OR

New.prod__list_price <> NVL(old.prod_list_price, 0) )

BEGIN

check_price (: new.prod_id) ;

END

/

Examine the following update command for an existing row in the product table.

SQL> UPDATE produce SET prod_list_price = 10 WHERE prod_id=115;

Why does it generate an error?

A.

Because the procedure call in the trigger is not valid

B.

Because the condition specified in the when clause is not valid

C.

Because both the procedure and trigger access the same table

D.

Because the WHEN clause cannot be used with a row-level trigger

E.

Because the column list specified with UPDATE in the trigger is not valid

Full Access
Question # 14

Examine the following PL/SQL code:

1z0-144 question answer

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

A.

It executes successfully.

B.

It generates a run-time exception.

C.

It does not execute because of syntax error

D.

It executes successfully and generates a warning.

Full Access
Question # 15

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

1z0-144 question answer

Which stages are performed when the above block is executed? (Choose all that apply)

A.

Bind

B.

Parse

C.

Fetch

D.

Execute

Full Access