Sie sind auf Seite 1von 7

Test: Using the PL/SQL Initialization Parameters: Quiz

Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct
answer.
Section 1
(Answer all questions in this section)

1. To set the PLSQL_CODE_TYPE to its fastest execution speed, which comman

ALTER SYSTEM SET PLSQL_CODE_TYPE=NA


ALTER SYSTEM SET PLSQL_CODE_TYPE=2;
ALTER SESSION SET PLSQL_CODE_TYPE =
ALTER SESSION SET PLSQL_CODE_TYPE =
ALTER SESSION SET PLSQL_CODE_TYPE =
Correct

2. PLSQL_CODE_TYPE determines the type of code for both PL/SQL code and f

True
False (*)
Correct

3. Which are NOT examples of benefits of using PLSQL_OPTIMIZE_LEVEL. (Cho

(Choose all correct answers)

Control what PL/SQL does with useless cod

Combining compiled code from one subpro

Separating compiled code so that separate

Backward compatible with previous version

Modify source code to optimize frequentlyCorrect

4. When setting PLSQL_OPTIMIZE_LEVEL = 2, the compiled code will remove c

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

Test: Displaying Compiler Warning Messages: Quiz


Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct
answer.
Section 1
(Answer all questions in this section)
1. An error in PL/SQL is when the compiler does not proceed successfully and

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

6. Which pair of DBMS_WARNING commands would allow you to obtain the cu

(Choose all correct answers)

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

Test: Using Conditional Compilation: Quiz


Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct
answer.
Section 1
(Answer all questions in this section)

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

4. Inquiry directives are used to selectively include or exclude PL/SQL code ba

True
False (*)
Correct

5. The value of DBMS_DB_VERSION.VER_LE_11 is TRUE when the version of th

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

Incorrect. Refer to Section 15 Lesson 3

Summary

Page 1 of 1

Test: Hiding Your Source Code: Quiz


Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct
answer.
Section 1
(Answer all questions in this section)

1. One benefit of obfuscation is to protect intellectual property written in PL/S

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