When creating a function, in which section will you typically find the RETURN keyword?
A.
HEADER only
B.
DECLARATIVE
C.
EXECUTABLE and HEADER
D.
DECLARATIVE,EXECUTABLE and EXCEPTION HANDLING
Explanation:
The header of the function contains the RETURN keyword and identifies the data type that needs to be returned to the calling block. The RETURN statement in the executable section of the function
performs the actual returning of the value. The header section defines the return data type of
the value and the executable section does the actual returning.
Incorrect AnswersA: You need a RETURN Statement in the EXECUTABLE section as well. B: You will not find a RETURN in the declaration section. D: You will not find a RETURN statement in either section..
Option C is the answer
RETURN keyword can also be found in EXCEPTION SECTION.
Can we also consider EXCEPTION SECTION?