Demo 11q
Demo 11q
Demo 11q
Oracle
1Z0-144 Exam
Oracle Database 11g: Program with PL/SQL
https://www.braindumpsstore.com/1Z0-144.html
https://www.braindumpsstore.com
Questions & Answers PDF Page 2
Question: 1
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: A
Question: 2
https://www.braindumpsstore.com
Questions & Answers PDF Page 3
Answer: C
Question: 3
View the exhibit and examine the structure of the products table.
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.
https://www.braindumpsstore.com
Questions & Answers PDF Page 4
Answer: A
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.)
Answer: A, C
Explanation:
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
Question: 5
https://www.braindumpsstore.com
Questions & Answers PDF Page 5
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.
Answer: A
Question: 6
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.
Answer: B
Question: 7
https://www.braindumpsstore.com
Questions & Answers PDF Page 6
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: B
Question: 8
View the Exhibit and examine the structure of the customer table.
https://www.braindumpsstore.com
Questions & Answers PDF Page 7
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: A
Question: 9
Which statements are true about PL/SQL procedures? (Choose all that apply.)
A. Users with definer's rights who are granted access to a procedure that updates a table must be
granted access to the table itself.
B. 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.
C. Depending on the number of calls, multiple copies of the procedure are loaded into memory for
execution by multiple users to speed up performance.
D. 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.
Answer: B, D
Question: 10
https://www.braindumpsstore.com
Questions & Answers PDF Page 8
A. It displays
Output buffer not long enough.
This is my test string.-.
B. It displays only
Output buffer not long enough, and exits the anonymous block.
C. It displays only
This is my test string. - Because EXCEPTION should have been defined in the anonymous block to get the
error message.
D. 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.
Answer: A
Question: 11
Identify two situations where the DBMS_SQL package should be used. (Choose two.)
https://www.braindumpsstore.com
Questions & Answers PDF Page 9
Answer: A, C
https://www.braindumpsstore.com
Questions & Answers PDF Page 10
https://www.braindumpsstore.com/1Z0-144.html
https://www.braindumpsstore.com