1Z0-144 Premium Bundle

1Z0-144 Premium Bundle

Oracle Database 11g: Program with PL/SQL Certification Exam

4.5 
(15930 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
May 20, 2024Last update

Oracle 1Z0-144 Free Practice Questions

Q1. View the Exhibit and examine the structure of the SALGRADE table. 

Examine the following code: 

What is the outcome? 

A. It is created successfully. 

B. It gives an error because the return clause condition is invalid. 

C. It gives an error because the usage of the host variables is invalid. 

D. It gives an error because the data type of the return clause is invalid. 

Answer:

Q2. Consider the following scenario: 

Local procedure a calls remote procedure B 

Procedure A was compiled at 8 AM. 

Procedure A was modified and recompiled at 9 AM. 

Remote procedure B was later modified and recompiled at 11 AM. 

The dependency mode is set to timestamp. 

Which statement correctly describes what happens when procedure A is invoked at 1 PM? 

A. Procedure A is invalidated and recompiled immediately. 

B. There is no effect on procedure A and it runs successfully. 

C. Procedure B is invalidated and recompiled again when invoked. 

D. Procedure A is invalidated and recompiles when invoked the next time. 

Answer:

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

Answer:

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

Q5. Which two statements are correct about the usage of parameters in functions? (Choose two.) 

A. Functions can have only in mode parameters. 

B. Functions called in SQL statements cannot have out or in out mode parameters. 

C. Functions having in, out, or in out parameters can be called only in named PL/SQL subprograms 

D. Functions having in, out, or in out parameters can be called In PL/SQL procedures and anonymous blocks. 

Answer: B,D 

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

Examine the following trigger code: 

What is the outcome when the above trigger is compiled? 

A. It compiles successfully. 

B. It gives an error because the when condition is not valid. 

C. It gives an error because when cannot be used for row-level triggers. 

D. It gives an error because the statements under updating are not valid. 

E. It gives an error because the new qualifier in the when clause requires a colon prefix. 

Answer:

Q7. Examine the following block of code: 

Which two statements are correct about the code above? (Choose two.) 

A. The function goes through only the parse and executes phases. 

B. The function goes through the parse, bind, and execute phases. 

C. The function goes through the parse, bind, execute, and fetch phases. 

D. All the processing phases for the function are performed only at run time. 

E. Only the EXECUTE IMMEDIATE statement inside the function is parsed at run time. 

Answer: D,E 

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

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

Answer: B,C 

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

You want to create two procedures using the overloading feature to search for employee details based on either the employee name or employee number. 

Which two rules should you apply to ensure that the overloading feature is used successfully? (Choose two.) 

A. The procedures can be either stand-alone or packaged. 

B. The procedures should be created only as packaged subprograms 

C. The procedures should be created only as stand-alone subprograms 

D. Each subprogram's formal parameters should differ in both name and data type. 

E. The formal parameters of each subprogram should differ in data type but can use the same names. 

Answer: B,E 

Q11. Identify two situations where the DBMS_SQL package should be used. (Choose two.) 

A. The SELECT list is not known until run time. 

B. The dynamic SQL statement retrieves rows into records. 

C. You do not know how many columns a select statement will return, or what their data types will. 

D. You must use the %found SQL cursor attribute after issuing a dynamic SQL statement that is an insert or update statement. 

Answer: A,C 

Q12. View the Exhibit to examine the PL/SQL block. 

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

A. It executes successfully and gives the desired output. 

B. It does not execute because the definition of type population is indexed by VARCHAR2. 

C. It executes, and the string keys of an associative array are not stored in creation order, but in sorted order. 

D. It does not execute because the value that is once assigned to the element of the associative array cannot be changed. 

Answer:

Q13. You want to maintain an audit of the date and time when each user of the database logs off. 

Examine the following code: 

Which two clauses should be used to fill in the blanks and complete the above code? (Choose two.) 

A. ON SCHEMA 

B. ON QRXABASE 

C. AFTER LOGOFF 

D. BEFORE LOGOFF 

Answer: A,D 

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

Q15. View the Exhibit and examine the code. 

Why does the code give an error on execution? 

A. because the WORD_LIST variable is not visible in procedure wording 

B. because the lexicon variable is not visible in procedure ADD_ENTRY 

C. because the lexicon variable is not initialized in procedure wording 

D. because the WORD_LIST parameter in out mode cannot be of a record data type 

Answer:

START 1Z0-144 EXAM