Each choice contains a combination of DDL statements and PL/SQL blocks. A choice is correct if it does not contain any unnecessary code.
Code is unnecessary if you can remove it from the choice and the result of running that code remains the same. It is then incorrect.
Special rules for this quiz:
-
You cannot add or change code - only remove.
-
You may not remove part of an identifier (for example, remove "PLS_" from "PLS_INTEGER" and be left with "INTEGER"). Instead, entire identifiers and syntax elements must be removed.
-
White space (space, new line, etc.) is not code.
The following block, for example, is incorrect:
BEGIN
NULL;
DBMS_OUTPUT.PUT_LINE (1);
END;
since the NULL statement can be removed without any impact whatsoever. The following block is correct, since if you remove the NULL; statement (or BEGIN or END), the block will no longer be valid.
BEGIN
NULL;
END;
So which choice does not contain any unnecessary code?