Pass4sure offers free demo for 1Z0-144 exam. "Oracle Database 11g: Program with PL/SQL", also known as 1Z0-144 exam, is a Oracle Certification. This set of posts, Passing the Oracle 1Z0-144 exam, will help you answer those questions. The 1Z0-144 Questions & Answers covers all the knowledge points of the real exam. 100% real Oracle 1Z0-144 exams and revised by experts!

Q9. You want to create a trigger that fires whenever rows are deleted from the customer table and that displays the number of rows remaining in the table. 

Which two statements are correct about the trigger to be created for the above requirement? (Choose two.) 

A. It should be an after trigger. 

B. It should be a before trigger. 

C. It should be a row-level trigger. 

D. It should be a statement-level trigger. 

E. It can be a before or an after trigger. 

Answer: A,C 


Q10. Examine the following code that you plan to execute: 

What correction should be performed in the above code? 

A. The PROC2 procedure code should be defined in the package body. 

B. The PROC3 procedure should be declared in the package specification. 

C. The PROC3 procedure header should be declared at the beginning of the package body. 

D. The variable x must be declared in the package body and removed from the specification, 

Answer: A,B 


Q11. 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. 

Answer:


Q12. View Exhibit1 and examine the structure of the product table. 

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. 

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 

Answer:


Q13. Examine the following code: 

Which two statements are true about the above function? (Choose two.) 

A. It can be used only in a parallelized query. 

B. It can be used in both a parallelized query and a parallelized DML statement. 

C. It can be used only in a parallelized data manipulation language (DML) statement. 

D. It can have a separate copy run in each of the multiple processes when called from a SQL statement that is run in parallel. 

E. It requires a PRAGMA RESTRICT_REFERENCES declaration with RNDS, WNDS, RNPS, and WNPS specified in order to use parallel optimization. 

Answer: B,E 


Q14. View the Exhibit to examine the PL/SQL code: 

SREVROUPUT is on for the session. Which statement Is true about the output of the PL/SQL block? 

A. The output is x = y. 

B. It produces an error. 

C. The output Is x != y. 

D. The output Is Can't tell if x and y are equal or not. 

Answer:


Q15. 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. 

Answer:


Q16. Which two statements are correct about PL/SQL package components? (Choose two) 

A. A package must have both specification and body. 

B. A package body can exist without the package specification. 

C. A package specification can exist without the package body. 

D. When a packaged public variable is called for the first time in a session, the entire package is loaded into memory. 

Answer: C,D