CREATE OR REPLACE PACKAGE ordering_pkgIS 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?
A. CREATE OR REPLACE PACKAGE BODY ordering_pkg IS
FUNCTION ship_calc_pf
(p_qty IN NUMBER)
RETURN NUMBER
IS
lv_ship_num NUMBER(5,2);
BEGIN
... code detail ...
END ship_calc_pf;
PROCEDURE order_total_pp
(p_bsktid IN NUMBER,
p_sub OUT NUMBER)
IS
BEGIN
... code detail ...
END order_total_pp;
END;
B. CREATE OR REPLACE PACKAGE ordering_pkg IS
FUNCTION ship_calc_pf
(p_qty IN NUMBER)
RETURN NUMBER
IS
lv_ship_num NUMBER(5,2);
BEGIN
... code detail ...
END ship_calc_pf;
PROCEDURE order_total_pp
(p_bsktid IN NUMBER,
p_sub OUT NUMBER,
IS
BEGIN
... code detail ...
END order_total_pp;
END;
C. CREATE OR REPLACE PACKAGE BODY ordering_pkg IS
FUNCTION ship_calc_pf
(p_qty IN NUMBER)
RETURN NUMBER
IS
lv_ship_num NUMBER(5,2);
BEGIN
... code detail ...
END ship_calc_pf;
END;
D. CREATE OR REPLACE PACKAGE BODY order_pkg IS
FUNCTION ship_calc_pf
(p_qty IN NUMBER)
RETURN NUMBER
IS
lv_ship_num NUMBER(5,2);
BEGIN
... code detail ...
END ship_calc_pf;
PROCEDURE order_total_pp
(p_bsktid IN NUMBER,
p_sub OUT NUMBER)
IS
BEGIN
... code detail ...
END order_total_pp;
END;
Answer: A
You might also like to view...
Leaders should direct considerable energy toward and maintaining ______ because of its critical role in the adaptive process.
A. the situation B. the challenge C. the balcony D. the holding environment
The customer whom Carlotta is calling on today has a(n) ________ buying center culture. This means that the decision process will involve reaching agreement among all members of the buying center.
A. consultative B. republican C. consensus D. democratic E. autocratic
What is an online journal that allows users to post their own comments, graphics, and videos?
A. Wiki B. Blog C. Mashup D. Selfie
DBMS have a data definition capability to specify the structure of the content of the database
Indicate whether the statement is true or false