1z0-144 Actual Exam Questions

Last updated on Nov. 28, 2024.
Vendor:Oracle
Exam Code:1z0-144
Exam Name:Oracle Database 11g Program with PLSQL
Exam Questions:112
 

Topic 1 - Single Topic

Question #1 Topic 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 -
(Cant 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?

  • 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.
Reveal Solution Hide Solution   Discussion   4

Correct Answer: D 🗳️

Question #2 Topic 1

Examine the following command:

SQL>ALTER SESSION -
SET plsql_warnings *
'enable: severe',
'enable: performance',
'ERROR: 05003';
What is the implication of the above command?

  • A. It issues a warning whenever ERROR: 05003 occur during compilation.
  • B. It causes the compilation to fail whenever the warning ERROR.05003 occurs.
  • C. It issues warnings whenever the code causes an unexpected action or wrong results performance problems.
  • D. It causes the compilation to fail whenever the code gives wrong results or contains statements that are never executed.
Reveal Solution Hide Solution   Discussion   5

Correct Answer: B 🗳️
References:

Question #3 Topic 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.
Reveal Solution Hide Solution   Discussion   3

Correct Answer: A 🗳️
In this case, the debug output will only occur if there is an exception.

Question #4 Topic 1

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

  • A. Reference host or bind variables in a PL/SQL 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
Reveal Solution Hide Solution   Discussion   7

Correct Answer: CD 🗳️

file Viewing page 1 out of 28 pages.
Viewing questions 1-4 out of 112 questions
Next Questions
Browse atleast 50% to increase passing rate cup
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago