In a PL/SQL block structure, which parts are optional?
-
DELCARE and BEGIN
-
DECALRE and EXCEPTION
-
EXCEPTION and END
-
BEGIN and END
B
Correct answer
Explanation
In a PL/SQL block, only the DECLARE and EXCEPTION sections are optional. Every PL/SQL block must have BEGIN and END keywords to define the executable section. The DECLARE section (for declarations) and EXCEPTION section (for error handlers) can be omitted if not needed.