Professional Documents
Culture Documents
1. Which command would you use to see if your triggers are enabled or disabled? Mark for Review
(1) Points
(*)
Correct
2. You need to disable all triggers that are associated with DML statements on the Mark for Review
DEPARTMENTS table. Which of the following commands should you use?
(1) Points
Correct
3. By default, any user can create a DML trigger on a table in his/her schema. True or Mark for Review
False?
(1) Points
True
False (*)
Correct
4. What is the purpose of using the CALL statement in a trigger? Mark for Review
(1) Points
Correct
5. You have been granted CREATE TRIGGER privilege. You can now create an AFTER Mark for Review
LOGOFF ON SCHEMA trigger. True or False?
(1) Points
True
False (*)
Correct
Section 13
(Answer all questions in this section)
1. Which command would you use to see if your triggers are enabled or disabled? Mark for Review
(1) Points
(*)
Correct
2. You need to disable all triggers that are associated with DML statements on the Mark for Review
DEPARTMENTS table. Which of the following commands should you use?
(1) Points
Correct
3. By default, any user can create a DML trigger on a table in his/her schema. True or Mark for Review
False?
(1) Points
True
False (*)
Correct
4. What is the purpose of using the CALL statement in a trigger? Mark for Review
(1) Points
It allows the trigger body code to be placed in a separate trigger.
It allows both DML events and DDL events to be handled using a single trigger.
It allows an INSTEAD OF trigger to be a statement trigger.
It prevents cascading triggers.
It allows the trigger body code to be placed in a separate procedure. (*)
Correct
5. You have been granted CREATE TRIGGER privilege. You can now create an AFTER Mark for Review
LOGOFF ON SCHEMA trigger. True or False?
(1) Points
True
False (*)
Correct
Section 13
(Answer all questions in this section)
Correct
12. A trigger can be created in the database or within an application. True or False?
Mark for Review
(1) Points
True (*)
False
Correct
trigg1;
pack1.packproc(25); (*)
SELECT func1(100) FROM dual;
IF pack1.packfunc(40) THEN ...
IF func1(75) THEN ... (*)
Correct
Keeping a log of how many rows have been inserted into a table
Recalculating the total salary bill for a department whenever an employee's
salary is changed
Ensuring that a student never arrives late for a class (*)
Enforcing a complex business rule
Enforcing a complex database security check
Correct
Before the triggering statement; After the triggering statement; Instead of the
triggering statement
Before the triggering statement; After the triggering statement; After each
row
Before the triggering statement; Before each row; After each row; After the
triggering statement (*)
Before the triggering statement; Before each row; After the triggering
statement
Correct
Section 13
(Answer all questions in this section)
AFTER STATEMENT IS
BEGIN
-- some action
END AFTER STATEMENT;
END compound_trigger;
True
False (*)
Correct
18. Examine the following code. To create a row trigger, what code should be included
at Line A? Mark for Review
(1) Points
CREATE TRIGGER dept_trigg
AFTER UPDATE OR DELETE ON departments
-- Line A
BEGIN ...
Correct
Correct
You want the trigger to prevent updates to the SALARY column, but allow updates
to all other columns. What should you code at Line A?
Correct
Section 13
(Answer all questions in this section)
Correct
22. We want to create a log record automatically every time any DML operation is
executed on either or both of the EMPLOYEES and DEPARTMENTS tables. What is Mark for Review
the smallest number of triggers that must be create to do this? (1) Points
One
Two (*)
Three
Six
Eight
Correct
23. A DML statement trigger fires only once for each triggering DML statement, while a
Mark for Review
row trigger fires once for each row processed by the triggering statement. True or
False? (1) Points
True (*)
False
Correct
24. You need to create a trigger that will fire whenever an employee's salary or job_id
is updated, but not when any other column of the EMPLOYEES table is updated. Mark for Review
Which of the following is the correct syntax to do this? (1) Points
(*)
CREATE TRIGGER emp_upd_trigg
AFTER UPDATE OF (salary, job_id) ON employees
BEGIN ...
Correct
25. Which of the following is the correct syntax for creating a DML trigger associated
Mark for Review
with the EMPLOYEES table? The trigger must fire whenever an employee's JOB_ID
is updated, but not if a different column is updated. (1) Points
(*)
CREATE TRIGGER job_upd_trigg
WHENEVER UPDATE OF job_id IN employees
BEGIN ...
CREATE TRIGGER job_upd_trigg
AFTER UPDATE ON employees(job_id)
BEGIN ...
CREATE TRIGGER job_upd_trigg
AFTER UPDATE ON employees.job_id
BEGIN ...
Correct
Section 14
(Answer all questions in this section)
Correct
27. Which of the following will display only the number of invalid package bodies in
Mark for Review
your schema?
(1) Points
(*)
SELECT COUNT(*) FROM user_objects
WHERE object_type LIKE 'PACKAGE%'
AND status = 'INVALID';
Correct
28. Which data dictionary view shows information about references and dependencies?
Mark for Review
(1) Points
USER_LOCAL_DEPENDENCIES
DEPTREE
USER_DEPENDENCIES (*)
USER_REFERENCES
Correct
29. A SELECT from the DEPTREE table displays table LOCATIONS at nested level 0 and
Mark for Review
procedure LOCPROC at nested level 2. This shows that LOCPROC is directly
dependent on LOCATIONS. True or False? (1) Points
True
False (*)
Correct
Correct
Section 14
(Answer all questions in this section)
31. Which of the following is NOT created when the utldtree.sql script is run?
Mark for Review
(1) Points
Correct
32. Which of the following statements will show whether procedure myproc is valid or
invalid? Mark for Review
(1) Points
(*)
SELECT valid FROM USER_OBJECTS
WHERE object_type = 'PROCEDURE'
AND object_name = 'MYPROC';
SELECT status FROM USER_PROCEDURES
WHERE procedure_name = 'MYPROC';
Correct
Correct
34. Which is not a mode that can be used to determine the dependency status of
schema objects when dealing with remote dependencies? Mark for Review
(1) Points
VARCHAR2 (*)
DECIMAL
BINARY_INTEGER
INTEGER
Correct
Section 14
(Answer all questions in this section)
36. In this scenario, the following status is given for each procedure:
Mark for Review
True
False (*)
Correct
37. Which Data Dictionary table stores information about a procedure's timestamp?
Mark for Review
(1) Points
USER_PROCEDURES
USER_MODE
USER_OBJECTS (*)
USER_TIMESTAMP
38. Which statement for setting a database parameter is the default for remote
Mark for Review
dependency checking?
(1) Points
Correct
Section 15
(Answer all questions in this section)
39. What is the name of the column used to identify the PLSQL_OPTIMIZE_LEVEL in
the data dictionary? Mark for Review
(1) Points
PLSQL_OPTIMIZE_LEVEL (*)
PLSQL_CODE_TYPE
USER_PLSQL_OPTIMIZE
PLSQL_LEVEL
OPTIMIZE_LEVEL
Correct
40. When setting PLSQL_OPTIMIZE_LEVEL = 3, the compiled code will run more
Mark for Review
slowly, but it will work with older versions of the Oracle software. True or False?
(1) Points
True
False (*)
True (*)
False
42. When wrapping subprograms, the entire PL/SQL code must be included as an IN
Mark for Review
argument with data type VARCHAR2 up to 32,767 characters. True or False?
(1) Points
True (*)
False
43. You created a package named pkg1. The code is approximately 90,000 characters.
Mark for Review
What is the statement that you use to obfuscate this package in the database?
(1) Points
DBMS_DML.CREATE_WRAPPED (pkg1);
DBMS_DML.CREATE_WRAP (pkg1);
WRAP INAME=pkg1.sql
WRAP pkg1.sql
DBMS_DML.CREATE_WRAPPED ('CREATE OR REPLACE PACKAGE BODY
pkg1...); (*)
44. When wrapping subprograms, the entire PL/SQL code must be included as an IN
argument with data type CLOB to allow for any size program. True or False? Mark for Review
(1) Points
True
False (*)
Correct
$IF
$THEN
$ELSE
$END
$CCFLAG
$$IF
$$THEN
$$ELSE
$$END
$$DEBUG
$$IF
$$THEN
$$ELSE
$$ELSIF
$$END
$IF
$THEN
$ELSE $ELSIF
$ENDIF
$IF
$THEN
$ELSE
$ELSIF
$END
(*)
Correct
Section 15
(Answer all questions in this section)
46.In order to use the deterministic functions in Oracle version 11, you can use the
Mark for
following sample code to test for the Oracle version before compiling that section.
True or False? Review
(1) Points
CREATE OR REPLACE FUNCTION myfunc
RETURN NUMBER
$IF DBMS_DB_VERSION.VERSION >= 11 $THEN
DETERMINISTIC
$END
IS BEGIN
-- body of function
END myfunc;
True (*)
False
Correct
47.To include selections of code for compilation based on user-defined values, use the
PLSQL_CCFLAGS parameters. True or False? Mark for
Review
(1) Points
True (*)
False
Correct
48.Which pair of DBMS_WARNING commands would allow you to obtain the current
Mark for
settings and change and restore those settings in a PL/SQL subprogram? (Choose
two) Review
(1) Points
DBMS_WARNING.ADD_WARNING_SETTING_CAT
DBMS_WARNING.GET_WARNING_STRING
DBMS_WARNING.GET_WARNING_SETTING_STRING (*)
DBMS_WARNING.SET_WARNING_SETTING_STRING (*)
Correct
DBMS_WARNING.ADD_WARNING_SETTING_CAT('PERFORMANCE','ENABLE','SESSI Review
ON'); (1) Points
Correct
50.In the USER_ERRORS data dictionary view, if an error is prefixed with "Warning,"
Mark for
the command completes but has a side effect the user needs to know about. For all
other errors, the command terminates abnormally. True or False? Review
(1) Points
True (*)
False
Correct