Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct
answer.
Section 1
(Answer all questions in this section)
2. PLSQL_CODE_TYPE determines the type of code for both PL/SQL code and f
True
False (*)
Correct
True (*)
False
Correct
5. Which data dictionary view allows you to see the setting for PLSQL_OPTIMIZ
USER_PLSQL_OBJECTS
USER_PLSQL_OPTIMIZE
USER_PLSQL_OBJECT_SETTINGS (*)
USER_OBJECT_SETTINGS
USER_PLSQL_CODE_TYPE
Correct
6. What are the valid values for PLSQL_OPTIMIZE_LEVEL in the data dictionary
0,1,2,3 (*)
0,1,2,3,4
1,2,3
1,2,3,4
Correct
Summary
Page 1 of 1
True (*)
False
Correct
2. A warning in PL/SQL is the same as an error in PL/SQL, but can only be view
True
False (*)
Correct
3. Which PL/SQL warning message identifies code that can cause unexpected
INFORMATIONAL
PERFORMANCE
ALL
SEVERE (*)
ERROR
Correct
4. The informational warning level for PL/SQL compiled code identifies the cod
True
False (*)
Correct
5. The two statements below are equivalent. True or False?
DBMS_WARNING.ADD_WARNING_SETTING_CAT
('INFORMATIONAL','ENABLE','SESSION');
and
ALTER SESSION
SET PLSQL_WARNINGS = 'ENABLE:INFORMATIONAL';
True (*)
False
Correct
DBMS_WARNING.SET_WARNING_SETTING_
DBMS_WARNING.ADD_WARNING_SETTING_
DBMS_WARNING.GET_WARNING_SETTING_
DBMS_WARNING.GET_WARNING_STRING
Correct
Summary
Page 1 of 1
1. Conditional compilation allows you to include extra code to help with debug
True (*)
False
Correct
2. You can choose which code to include in a PL/SQL program based on condit
True (*)
False
Correct
3. Identify the selection directives used in conditional compilation.
$IF
$THEN
$ELSE
$END
$CCFLAG
$$IF
$$THEN
$$ELSE
$$ELSIF
$$END
$IF
$THEN
$ELSE $ELSIF
$ENDIF
$IF
$THEN
$ELSE
$ELSIF
$END
(*)
$$IF
$$THEN
$$ELSE
$$END
$$DEBUG
Correct
True
False (*)
Correct
True
False (*)
Correct
6. If the version and release of the Oracle database in use is 10.2, what statem
$IF DBMS_DB_VERSION.VER_LE_10_2
-- some messaage
$ELSE
-- some action
$END
$IF DBMS_DB_VERSION.VER_LE_10_2
-- some messaage
$ELSE
-- some action
$END;
$IF DBMS_DB_VERSION.VER_LE_10_1
-- some messaage
$ELSE
-- some action
$END
(*)
$IF DBMS_DB_VERSION.VER_LE_10_1
-- some messaage
$THE
$THE
$THE
$THE
Summary
Page 1 of 1
True (*)
False
Correct
2. Obfuscation allows the owner to see the source code, but not the users to w
True
False (*)
Correct
3. When wrapping subprograms, the entire PL/SQL code must be included as
True (*)
False
Correct
4. To obfuscate the procedure my_proc, what statement should be at Line A?
BEGIN
-- Line A
('CREATE OR REPLACE PROCEDURE mycleverproc
(p_param1 IN NUMBER, p_param2 OUT NUMBER)
IS BEGIN
... /* some clever but private code here */
END mycleverproc;');
END;
DBMS_DML.CREATE_WRAP
DBMS_DDL.CREATE_WRAP
DBMS_DDL.CREATE_WRAPPED (*)
DBMS_DDL.WRAPPED
DBMS_DDL.WRAP_CODE
Correct
5. To create obfuscated code using the wrapper utility, determine the order in
A Connect to the database and execute the wrapped text file as a script to
B Log into the database server computer.
C Create a text file containing your complete unwrapped source code.
D Execute WRAP to create a second text file containing the wrapped code.
A,B,C,D
B,C,D,A (*)
C,D,A,B
C,A,B,D
B,D,C,A
Correct
6. For PL/SQL code larger than 32,767 characters, you must use the wrap utili
True (*)
False
Correct
Page 1 of 1
Summary