阿摩線上測驗 登入

試題詳解

試卷:無年度 - Oracle ActualTests.1Z0-147.v2008-11-10.by.Ramon.111q#24548 | 科目:資料庫管理系統(AS2)

試卷資訊

試卷名稱:無年度 - Oracle ActualTests.1Z0-147.v2008-11-10.by.Ramon.111q#24548

科目:資料庫管理系統(AS2)

QUESTION 56 Examine this code: CREATE OR REPLACE PACKAGE metric_converter IS c_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_converter IS FUNCTION calc_height (p_height_in_inches NUMBER) RETURN NUMBER IS BEGIN RETURN p_height_in_inches * c_height; END calc_height; FUNCTION calc_weight (p_weight_in_pounds NUMBER) RETURN NUMBER IS BEGIN RETURN p_weight_in_pounds * c_weight END calc_weight END metric_converter; / CREATE OR REPLACE FUNCTION calc_height (p_height_in_inches NUMBER) RETURN NUMBER IS BEGIN RETURN 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.
正確答案:登入後查看