Oracle 1z0-144

Description

Quiz on Oracle 1z0-144, created by Mahbubul Alam on 16/02/2019.
Mahbubul Alam
Quiz by Mahbubul Alam, updated more than 1 year ago
Mahbubul Alam
Created by Mahbubul Alam almost 6 years ago
52
0

Resource summary

Question 1

Question
View the exhibit and examine the structure of the products table.
Answer
  • It executes successfully but no error messages get recorded in the DEBUG_OUTPUT table
  • It executes successfully and any error messages get recorded in the DEBUG_OUTPUT table.
  • It gives an error because PRAGMA AUTONOMOUS_TRANSACTION can be used only in packaged procedures.
  • It gives an error because procedures containing PRAGMA AUTONOMOUS_TRANSACTION cannot be called from the exception section.

Question 2

Question
View Exhibit 1 and examine the structure of the employees table.
Answer
  • It executes successfully.
  • It gives an error because the SAL variable isnot visible in the increase function.
  • It gives an error because the increase function cannot be called from the RAISE_SALARY procedure.
  • It gives an error because the increase function and the RAISE_SALARY procedure should be declared at the beginningof the declare section before all the other declarations.

Question 3

Question
Examine the following block of code:
Answer
  • line 5
  • line 8
  • line 2
  • line 7

Question 4

Question
Which two statements are true about the instead of triggers? (Choose two.)
Answer
  • Delete operations cannot be performed using the instead of triggers.
  • The instead or triggers must be created to add or modify datathrough any view.
  • The instead of triggers can be written only for views, and the before and after timing options are not valid.
  • The check option for views is not enforced when Insertions or updates to the view are performed by using the instead of triggers.

Question 5

Question
View the Exhibit and examine the structure of the departments table in SCOTT’s schema.
Answer
  • JONES executes the procedure with definer's rights.
  • JONES executes the procedure with invoker's rights.
  • SCOTT should grant only the execute privilege for the procedure to JONES.
  • SCOTT should grant both the BXKCOTE privilege for the procedure and insert privilege for the table to

Question 6

Question
Identify two features of obfuscation.
Answer
  • The Import and Export utilitiesaccept wrapped files.
  • SQL' Plus cannot process the obfuscated source files.
  • Only the wrap utility can obfuscate multiple programs at a time.
  • Both the DBMS_DDL package and the Wrap utility can obfuscate multiple programs at a time.
  • The sourcecode is visible only through the DBA_SOURCE view and not through the USER_SOURCE or ALL_SOURCE View

Question 7

Question
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.
Answer
  • It should be an after trigger.
  • It should be a before trigger.
  • It should be a row-level trigger.
  • It should be astatement-level trigger.
  • It can be a before or an after trigger.

Question 8

Question
ORDER_TOTAL is a column in the orders table with the data type and size as number (8, 2) Examine the following code:
Answer
  • It givesan error in line 3.
  • It gives an error in line 4.
  • It gives an error in line 6.
  • It executes successfully and displays the output.

Question 9

Question
View the Exhibit and examine the blocks of code that you plan to execute.
Answer
  • All the blocks execute successfully and the anonymous block displays123cant: 4545cnt: 45.
  • All the blocks execute successfully and the anonymous block displays123cut: 045cart: 1.
  • The anonymous block gives an error because the function invocation in line 2 is not valid.
  • The procedure creation gives an error because the function invocation in line 1 is not valid.

Question 10

Question
Which two statements correctly differentiate functions and procedures?
Answer
  • A function can be called only as part of a SQL statement, whereas a procedure can be called only as a PL/SQL statement.
  • A function must return a value to the calling environment, whereas a procedure can return zero or more values to its calling environment.
  • A function can be called as part of a SQL statement or PL/SQL expression, whereas a procedure can be called only as a PL/SQL statement.
  • A function may return one or more valuesto the calling environment, whereas a procedure must return a single value to its calling environment.
Show full summary Hide full summary

Similar

Product Design
cmbj
Physics - Energy, Power & Work
dominique22
Tips for IB History Paper 1
enyarko
An Inspector Calls - Themes
Emily Simms
AQA AS LAW, Unit 1, Section A, Parliamentary Law Making 1/3
Nerdbot98
| GCSE Busniness Studies | AQA | Key Terms | "Starting A Business" |
Spuddylicious
Sociology - Crime and Deviance - Feminists
josaul1996
OCR Physics P4 Revision
Dan Allibone
Characters in Merchant of venice
inds12
TEORIAS CONTEMPORANEAS
karen lorena miranda rojas