Exam 7: PL/SQL Packages

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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)

The ____ is referred to as the package header.

(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)

____ can be created only as stored program units.

(Multiple Choice)
4.8/5
(35)

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
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)