Which of the following code fragments would not raise an error?

A. CREATE OR REPLACE FUNCTION  ship_calc(p_qty IN NUMBER)
IS
  lv_ship_num NUMBER(5,2);
BEGIN
   IF p_qty > 10 THEN
      lv_ship_num := 11.00;
   ELSE
      lv_ship_num := 5.00;
   END IF;
   RETURN lv_ship_num;
END;

B. CREATE OR REPLACE  ship_calc(p_qty)
RETURN NUMBER
IS
  lv_ship_num NUMBER(5,2);
BEGIN
   IF p_qty > 10 THEN
      lv_ship_num := 11.00;
   ELSE
      lv_ship_num := 5.00;
   ENDIF;
   RETURN lv_ship_num;
END;

C. CREATE OR REPLACE FUNCTION ship_calc(p_qty IN NUMBER)
RETURN NUMBER
IS
  lv_ship_num NUMBER(5,2);
BEGIN
   IF p_qty > 10 THEN
      lv_ship_num := 11.00;
   ELSE
      lv_ship_num := 5.00;
   END IF;
   RETURN lv_ship_num;
END;

D. CREATE OR REPLACE FUNCTION  ship_calc(p_qty IN NUMBER)
RETURN NUMBER
BEGIN
   IF p_qty > 10 THEN
      lv_ship_num := 11.00;
   ELSE
      lv_ship_num := 5.00;
   END IF;
   RETURN lv_ship_num;
END;


Answer: C

Business

You might also like to view...

The evaluation of field workers should be based on which of the following criteria?

A) cost and time B) response rates C) quality of the data D) all of the above

Business

The use of ________ analysis in setting workplace health and safety standards commits us to treating worker health and safety as just another commodity, another individual preference, to be traded off against competing commodities.

Fill in the blank(s) with the appropriate word(s).

Business

Identify the preposition or prepositions in the sentence. Gina and Mario walked beside the lake

Business

Which recommended practices has Deloitte used to recruit and retain the best employees to make its rank-and-file employees a genuine competitive asset?

What will be an ideal response?

Business