When creating a function, in which section will you typically find the RETURN keyword?

When creating a function, in which section will you typically find the RETURN keyword?

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 Answers

A: 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..



Leave a Reply 2

Your email address will not be published. Required fields are marked *


khushboo

khushboo

Option C is the answer

Anand Aili

Anand Aili

RETURN keyword can also be found in EXCEPTION SECTION.

Can we also consider EXCEPTION SECTION?