Exam 7: PL/SQL Packages
Exam 1: Introduction To PL/SQL54 Questions
Exam 2: Basic PL/SQL Block Structures81 Questions
Exam 3: Handling Data In PL/SQL Blocks51 Questions
Exam 4: Cursors and Exception Handling65 Questions
Exam 5: Procedures75 Questions
Exam 6: Functions51 Questions
Exam 7: PL/SQL Packages68 Questions
Exam 8: Program Unit Dependencies61 Questions
Exam 9: Database Triggers54 Questions
Exam 10: Oracle-Supplied Packages, Dynamic SQL, and Hiding Source Code85 Questions
Select questions type
The ____ directive needs to be included in the package specification to clearly state the purity levels applicable to the function.
(Multiple Choice)
4.8/5
(32)
All code in the procedure and function header sections of a package body must match exactly to the declarations in the corresponding specification.
(True/False)
4.8/5
(32)
A(n) ____ is a statement used to define a data construct, such as a variable, name, and data type.
(Multiple Choice)
4.8/5
(30)
Adding the program unit name to the END statement that closes the procedure or function statements in the package body is mandatory.
(True/False)
4.7/5
(33)
Functions are used in CHECK constraints or as a default values of table columns.
(True/False)
4.7/5
(38)
A(n) package body is the program unit that contains the code for any procedures and functions declared in the specification. _________________________
(True/False)
4.8/5
(22)
A(n) ____ is a declaration of a program unit in a package body by placing the header code at the top of the package body code.
(Multiple Choice)
4.9/5
(35)
Full procedures or function codes are contained in the ____.
(Multiple Choice)
4.9/5
(42)
For overloading to be successful, the formal parameters in the procedures or functions must be the same.
(True/False)
4.8/5
(35)
When a user assumes the rights of the program unit owner just during the processing of that program unit, this is referred to as ____.
(Multiple Choice)
4.8/5
(31)
Packaged variable values are persistent throughout a user session and each user of the package has his or her own copy of the packaged variable.
(True/False)
5.0/5
(36)
Why would a package require two procedures or functions with the same name?
(Essay)
4.9/5
(33)
CREATE OR REPLACE PACKAGE ordering_pkg IS
Pv_total_num NUMBER(3,2);
PROCEDURE order_total_pp
(p_bsktid IN NUMBER,
P_sub OUT NUMBER);
FUNCTION ship_calc_pf
(p_qty IN NUMBER)
RETURN NUMBER;
END;
Based on the package specification above, which of the following code fragments correctly creates a package body?
(Multiple Choice)
4.9/5
(35)
Functions cannot be used in a(n) ____________________ constraint or as a default value of a table column.
(Short Answer)
4.7/5
(30)
All of the following represent packaged function purity levels, except ____.
(Multiple Choice)
4.9/5
(39)
The AUTHID directive needs to be included in the package specification to clearly state the purity levels applicable to the function. _________________________
(True/False)
4.9/5
(39)
A REEF CURSOR data type declared in a package specification may be referenced by multiple program units.
(True/False)
4.7/5
(43)
The ____________________ data dictionary view allows us to view the source code of packages.
(Short Answer)
4.8/5
(36)
Showing 41 - 60 of 68
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)