Master the 1Z0-144 Oracle Database 11g: Program with PL/SQL content and be ready for exam day success quickly with this Examcollection 1Z0-144 exams. We guarantee it!We make it a reality and give you real 1Z0-144 questions in our Oracle 1Z0-144 braindumps.Latest 100% VALID Oracle 1Z0-144 Exam Questions Dumps at below page. You can use our Oracle 1Z0-144 braindumps and pass your exam.

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

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 

Answer: B,C 


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

View Exhibit2 and examine the code. 

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. 

Answer:


Q13. Which three statements are true about anonymous blocks and subprograms? (Choose three.) 

A. Only subprograms can be parameterized. 

B. Only subprograms are persistent database objects. 

C. Both anonymous blocks and subprograms can be parameterized. 

D. Both anonymous blocks and subprograms are persistent database objects 

E. Only subprograms can return values that persist after the execution of the subprogram. 

F. Both anonymous blocks and subprograms can return values that persist In SQL*Plus variables after their execution. 

Answer: B,E,F 


Q14. You execute the following block of code: 

Which statement is true about the outcome? 

A. Both Output statements show different values. 

B. Both output statements show exactly the same values. 

C. It gives an error because the nested blocks are not labeled. 

D. It gives an error because the V_CUSTOMER variable have different types in the nested blocks 

Answer:


Q15. Which statement is true about triggers on data definition language (DDL) statements? 

A. They can be used to track changes only to a table or index. 

B. They can be defined by all users in the database or only by a specific user. 

C. They are fired only when the owner of the object Issues the DDL statement. 

D. They can be used to track changes to a table, table space, view, or synonym. 

Answer:


Q16. Examine the following DECLARE section of PL/SQL block: 

Which line in the above declaration would generate an error? 

A. Line 2 

B. Line 3 

C. Line 4 

D. Line 5 

E. Line 6 

Answer:


Q17. 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:


Q18. Which two statements are true about the PL/SQL initialization parameters? (Choose two.) 

A. To use native code compilation, PLSQL_OPTIMIZE_I.EVEL should be set to a value less than or equal to l. 

B. The default value of 2 for PLSQL_OPTIMI2E_LEVEL allows the compiler to rearrange code for better performance. 

C. Setting PLSQL_CODE_TYPE to native provides the greatest performance gains only for computation-intensive procedural operations. 

D. Changing the value of the PLSQL_CODE_TYPE parameter affects all the PL/SQL library units that have already been compiled 

Answer: B,C 


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

Answer:


Q20. View Exhibit1 and examine the structure of the employees table. 

User SCOTT needs to generate a text report that contains the names of all employees and their salaries. 

Examine the following commands issued by the DBA: 

SQL_CREATE DICTORY my_dir AS '/temp/my_files* ; 

SQL_GRANT WRITE ON DIRECTORY my_dir TO SCOTT; 

View Exhibit2 and examine the procedure code. 

You issue the following command: You issue the following command: 

SQL_EXEC sal_5tatus ('MY_DIR', ‘EMPREPORT.TXT') 

What is the outcome? 

A. It executes successfully and creates the report. 

B. It gives an error because the text file should be opened in append mode. 

C. It gives an error because the "no data found" condition is not handled to come out of the loop. 

D. It gives an error because user SCOTT should be granted both read and write privileges to the directory alias. 

E. It executes but no data is written to the text file because the FFLUSH subprogram is not used to write all the data buffered in memory to a file. 

Answer: