[Latest Version] Easily Pass 1z0-144 Exam With Updated 1z0-144 Preparation Materials
Tens of thousands of competitors, pages of hard questions and unsatisfied exam preparation situations… Do not worried about all those annoying things! We, help you with your Oracle Database 1z0-144 Oracle Database 11g: Program with PL/SQL exam. We will assist you clear the 1z0-144 exam with Oracle Database latest 1z0-144 dumps. We 1z0-144 new questions are the most comprehensive ones.
Visit our site to get more 1z0-144 Q and As:https://www.passitdump.com/1Z0-144.html (106 QAs Dumps)
Question 1:
View the exhibit and examine the structure of the products table.
Examine the following code:
Which statement is true when the procedure DELETE_DETAILS is invoked?
A. It executes successfully but no error messages get recorded in the DEBUG_OUTPUT table
B. It executes successfully and any error messages get recorded in the DEBUG_OUTPUT table.
C. It gives an error because PRAGMA AUTONOMOUS_TRANSACTION can be used only in packaged procedures.
D. It gives an error because procedures containing PRAGMA AUTONOMOUS_TRANSACTION cannot be called from the exception section.
Correct Answer: A
In this case, the debug output will only occur if there is an exception.
Question 2:
View Exhibit 1 and examine the structure of the EMPLOYEES table.
View Exhibit 2 and examine the code.
What would be the outcome when the code is executed?
A. It executes successfully.
B. It gives an error because the SAL variable is not visible in the INCREASE function.
C. It gives an error because the INCREASE function cannot be called from the RAISE_SALARY procedure.
D. It gives an error because the INCREASE function and the RAISE_SALARY procedure should be declared at the beginning of the DECLARE section before all the other declarations.
Correct Answer: A
Question 3:
What is the correct definition of the persistent state of a packaged variable?
A. It is a private variable defined in a procedure or function within a package body whose value is consistent within a user session.
B. It is a public variable in a package specification whose value is consistent within a user session.
C. It is a private variable in a package body whose value is consistent across all current active sessions.
D. It is a public variable in a package specification whose value is always consistent across all current active sessions.
Correct Answer: B
Question 4:
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 be.
D. You must use the % FOUND SQL cursor attribute after issuing a dynamic SQL statement that is an INSERT or UPDATE statement.
Correct Answer: AC
Question 5:
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 IN OUT mode cannot be of a RECORD data type
Correct Answer: A
Question 6:
View the Exhibit and examine the structure of the AUDIT_CUST table.
CUST_ID and CUST_CREDIT_LIMIT are existing columns in the CUSTOMER table. Examine the following trigger code:
Which statement is true about the above trigger?
A. It gives an error on compilation because it should be a statement-level trigger.
B. It compiles and fires successfully when the credit limit is updated in the customer table.
C. It gives an error on compilation because of the commit command in the trigger code.
D. It compiles successfully, but gives an error when the credit limit is updated in the CUSTOMER table because the PRAGMA AUTONOMOUS_TRANSACTION statement should be introduced in the trigger.
Correct Answer: D
Question 7:
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 OF 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 triggers.
Correct Answer: CD
Question 8:
View the Exhibit and examine the structure of the employees table.
Examine the following block of code:
What is the outcome when the above code is executed?
A. It executes successfully.
B. It gives an error because decode cannot be used in a PL/SQL block.
C. It gives an error because the AVG function cannot be used in a PL/SQL block
D. It gives an error because the MONTHS_BETWEEN function cannot be used in a PL/SQL block.
E. It gives an error because both the AVG and decode functions cannot be used in a PL/SQL block.
Correct Answer: A
Question 9:
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.
Correct Answer: BD
Question 10:
/temp/my_files is an existing folder in the server, facultylist.txt is an existing text file in this folder.
Examine the following commands that are executed by the DBA:
SQL>CREATE DIRECTION my_dir AS `/temp/my_files\’:
SQL>GRANT READ ON DIRECTORY my_dir To public:
View the Exhibit and examine the procedure created by user SCOTT to read the list of faculty names from the text file.
SCOTT executes the procedure as follows:
SQL>SET SERVEROUTPUT ON
SQL>EXEC read_file (`MY_DIR\’, FACULTYLIST.TXT\’)
What is the outcome?
A. It goes into an infinite loop.
B. It executes successfully and displays only the list of faculty names.
C. It does not execute and displays an error message because the end-of-file condition is not taken care of.
D. It executes successfully and displays the list of faculty names followed by a “no data found” error message.
Correct Answer: D
Question 11:
User SCOTT has been granted CREATE ANY TRIGGER and ALTER ANY TABLE by the DBA. HR is an existing schema in the database.
SCOTT creates the following trigger:
CREATE OR REPLACE TRIGGER drop_trigger
BEFORE DROP ON hr.SCHEMA
BEGIN
RAISE_APPLICATION_ERROR (-20000, `Cannot drop object\’);
END;
SCOTT does not grant the EXECUTE privilege on this trigger to any other users.
For which user(s) would this trigger fire by default when they drop an object in the HR schema?
A. Only HR
B. SCOTT and HR
C. Only SCOTT
D. SCOTT, HR, and SYS
Correct Answer: A
Question 12:
View the Exhibit and examine the code and its outcome on execution: What would be the effect on the two procedures if the value of debug is set to FALSE? (Choose two.)
A. MY_PROC2 is not recompiled.
B. MY_PROC1 is recompiled but remains unchanged.
C. MY_PROC2 is recompiled but remains unchanged.
D. MY_PROC1 is recompiled without the debugging code.
Correct Answer: CD
Question 13:
Identify two features of obfuscation. (Choose two.)
A. The Import and Export utilities accept wrapped files.
B. SQL\’ Plus cannot process the obfuscated source files.
C. Only the wrap utility can obfuscate multiple programs at a time.
D. Both the DBMS_DDL package and the Wrap utility can obfuscate multiple programs at a time.
E. The source code is visible only through the DBA_SOURCE view and not through the USER_SOURCE or ALL_SOURCE View
Correct Answer: AC
Question 14:
You create the following table and execute the following code:
Which statement is true about the outcome of the above code?
A. It executes successfully and all the rows are updated.
B. It raises an exception but saves the inserted rows and the update to the first row.
C. It gives an error but saves the inserted rows; however, no rows are updated.
D. It gives an error and all the data manipulation language (DML) statements are rolled back.
Correct Answer: B
Question 15:
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.
Correct Answer: AD
Visit our site to get more 1z0-144 Q and As:https://www.passitdump.com/1Z0-144.html (106 QAs Dumps)… Read More →