1Z0-144 | 10 Tips For Improved 1Z0-144 examcollection


Q11. Examine the following package specification: 

Which statement is true? 

A. g_comm has a value of 15 at 9: 06 AM only for Jones 

B. g_comm has a value of 10 at 9: 03 AM for both Jones and smith 

C. g_comm has a value of 15 at 9: 03 AM for both Jones and smith 

D. g_comm has a value of 20 at 9: 06 AM for both Jones and smith 

Answer:

Explanation: 

Package variable state is scoped at the session level. So the only user who can see G_COMM=15 will be Jones 

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

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 

Answer: B,E 

Q13. Which two tasks should be created as functions instead of as procedures? (Choose two.) 

A. Reference host or bind variables in a PL7SQL block of code 

B. Tasks that compute and return multiple values to the calling environment 

C. Tasks that compute a value that must be returned to the calling environment 

D. Tasks performed in SQL that increase data independence by processing complex data analysis within the Oracle server, rather than by retrieving the data into an application 

Answer: A,C 

Explanation: Explanation/Reference: 

Functions are used to return a value. Functions must return only a single value. 

Procedure are used to perform an action. 

Both functions and procedures are using to do a special task or action. In functions it is 

must to return a single value, where as in procedures it’s not compulsory 

Q14. Examine the following block of code: 

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

A. line 5 

B. line 8 

C. line 2 

D. line 7 

Answer:

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

Q16. In which of the following scenarios would you recommend using PL/SQL records? 

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

Answer: C,D 

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

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. 

Answer: C,D 

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

Q19. Which type of exceptions is qualified as no predefined Oracle server errors? 

A. the exceptions that are explicitly raised by the program and can be caught by the exception handler 

B. the exceptions that are raised implicitly by the Oracle server and can be caught by the exception handler 

C. an exception that the developer determines as abnormal, are in the declarative section and raised explicitly 

D. an exception that is raised automatically when the PL/SQL program violates a database rule or exceeds a system-dependent limit 

Answer:

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

Answer: