Download Oracle Database 11g: Program with PL-SQL.1z0-144.CertDumps.2017-12-09.112q.vcex

Vendor: Oracle
Exam Code: 1z0-144
Exam Name: Oracle Database 11g: Program with PL/SQL
Date: Dec 09, 2017
File Size: 6 MB

How to open VCEX files?

Files with VCEX extension can be opened by ProfExam Simulator.

Demo Questions

Question 1
View the Exhibit to examine the PL/SQL code:
    
DECLARE 
x NUMBER := 5;
y NUMBER := NULL;
BEGIN 
IF x != y THEN — yields NULL, not TRUE 
DBMS_OUTPUT.PUT_LINE(‘x != y’); — not run 
ELSIF x = y THEN — also yields NULL 
DBMS_OUTPUT.PUT_LINE(‘x = y’); 
ELSE 
DBMS_OUTPUT.PUT_LINE 
(‘Can’t tell if x and y are equal or not.’); 
END IF; 
END; 
SREVROUPUT is on for the session. Which statement is true about the output of the PL/SQL block?
  1. The output is x = y.
  2. It produces an error.
  3. The output is x != y.
  4. The output is Can't tell if x and y are equal or not.
Correct answer: D
Question 2
Examine the following command:
SQL>ALTER SESSION 
SET plsql_warnings * 
'enable: severe',
'enable: performance',
'ERROR: 05003';
What is the implication of the above command?
  1. It issues a warning whenever ERROR: 05003 occur during compilation.
  2. It causes the compilation to fail whenever the warning ERROR.05003 occurs.
  3. It issues warnings whenever the code causes an unexpected action or wrong results performance problems.
  4. It causes the compilation to fail whenever the code gives wrong results or contains statements that are never executed.
Correct answer: B
Explanation:
References:
References:
Question 3
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?
  1. It executes successfully but no error messages get recorded in the DEBUG_OUTPUT table
  2. It executes successfully and any error messages get recorded in the DEBUG_OUTPUT table.
  3. It gives an error because PRAGMA AUTONOMOUS_TRANSACTION can be used only in packaged procedures.
  4. It gives an error because procedures containing PRAGMA AUTONOMOUS_TRANSACTION cannot be called from the exception section.
Correct answer: A
Explanation:
In this case, the debug output will only occur if there is an exception.
In this case, the debug output will only occur if there is an exception.
Question 4
Which two tasks should be created as functions instead of as procedures? (Choose two.)
  1. Reference host or bind variables in a PL/SQL block of code
  2. Tasks that compute and return multiple values to the calling environment
  3. Tasks that compute a value that must be returned to the calling environment
  4. 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
Correct answer: CD
Question 5
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?
  1. It executes successfully.
  2. It gives an error because the SAL variable is not visible in the increase function.
  3. It gives an error because the increase function cannot be called from the RAISE_SALARY procedure.
  4. 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 6
What is the correct definition of the persistent state of a packaged variable?
  1. It is a private variable defined in a procedure or function within a package body whose value is consistent within a user session.
  2. It is a public variable in a package specification whose value is consistent within a user session.
  3. It is a private variable in a package body whose value is consistent across all current active sessions.
  4. It is a public variable in a package specification whose value is always consistent across all current active sessions.
Correct answer: B
Question 7
Examine the following block of code:
    
Which line in the above code would result in errors upon execution?
  1. line 5
  2. line 8
  3. line 2
  4. line 7
Correct answer: B
Question 8
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?
  1. It compiles successfully.
  2. It gives an error because the when condition is not valid.
  3. It gives an error because when cannot be used for row-level triggers.
  4. It gives an error because the statements under updating are not valid.
  5. It gives an error because the new qualifier in the when clause requires a colon prefix.
Correct answer: A
Question 9
Which statements are true about PL/SQL procedures? (Choose all that apply.)
  1. Users with definer's rights who are granted access to a procedure that updates a table must be granted access to the table itself.
  2. Reuse of parsed PL/SQL code that becomes available in the shared SQL area of the server avoids the parsing overhead of SQL statements at run time.
  3. Depending on the number of calls, multiple copies of the procedure are loaded into memory for execution by multiple users to speed up performance.
  4. A PL/SQL procedure executing on the Oracle database can call an external procedure or function that is written in a different programming language, such as C or Java.
Correct answer: BD
Question 10
The STRING_TAB table has the following structure:
   
View the Exhibit and examine the code. 
   
What is the outcome on execution?
  1. It displays Output buffer not long enough. This is my test string.-.
  2. It displays only Output buffer not long enough, and exits the anonymous block.
  3. It displays only This is my test string. - Because EXCEPTION should have been defined in the anonymous block to get the error message.
  4. It does not display any of the MEMS_PUTPUT messages and gives an error because a transaction control statement cannot be used in the exception section of a procedure.
Correct answer: A
HOW TO OPEN VCE FILES

Use VCE Exam Simulator to open VCE files
Avanaset

HOW TO OPEN VCEX AND EXAM FILES

Use ProfExam Simulator to open VCEX and EXAM files
ProfExam Screen

ProfExam
ProfExam at a 20% markdown

You have the opportunity to purchase ProfExam at a 20% reduced price

Get Now!