問題詳情

QUESTION 56Examine this code:CREATE OR REPLACE PACKAGE metric_converterISc_height CONSTRAINT NUMBER := 2.54;c_weight CONSTRAINT NUMBER := .454;FUNCTION calc_height (p_height_in_inches NUMBER)RETURN NUMBER;FUNCTION calc_weight (p_weight_in_pounds NUMBER)RETURN NUMBER;END;/CREATE OR REPLACE PACKAGE BODY metric_converterISFUNCTION calc_height (p_height_in_inches NUMBER)RETURN NUMBERISBEGINRETURN p_height_in_inches * c_height;END calc_height;FUNCTION calc_weight (p_weight_in_pounds NUMBER)RETURN NUMBERISBEGINRETURN p_weight_in_pounds * c_weightEND calc_weightEND metric_converter;/CREATE OR REPLACE FUNCTION calc_height (p_height_in_inches NUMBER)RETURN NUMBERISBEGINRETURN p_height_in_inches * metric_converter.c_height; END calc_height;/Which statement is true?中間
(A)If you remove the package specification, then the package body and the stand alone stored function CALC_HEIGHT are removed.
(B)If you remove the package body, then the package specification and the stand alone stored function CALC_HEIGHT are removed.
(C)If you remove the package specification, then the package body is removed.
(D)If you remove the package body, then the package specification is removed.
(E)If you remove the stand alone stored function CALC_HEIGHT, then the METRIC_CONVERTER package body and the package specification are removed.(AB).The stand alone function CALC_HEIGHT cannot be created because its name is used in a packaged function.

參考答案

答案:C
難度:非常困難0
統計:A(1),B(0),C(0),D(0),E(0)