FORMATIVE 3 Flashcards
The block structure of the subprograms is similar to the structure of (ANONYMOUS) blocks.
True or False
True
The (SUBPROGRAMS) are named PL/SQL bocks that are compiled and stored in the database.
True or False
A procedure is a PL/SQL block containing local variables, a BEGIN, and an END. The procedure_name after the END keyword is optional.
True or False
True
You can invoke a procedure from inside an SQL statement.
True or False
False
To invoke a procedure from another procedure, use a direct call inside an executable section of the block.
True or False
True
The formal parameters can be literal values, variables, or expressions that are sent to the parameter list of a called subprogram.
True or False
False
A procedure can be invoked in another procedure.
True or False
True
The IN parameters can only be read within the procedure and cannot be modified.
True or False
True
The DEFAULT keyword is used to assign a default value for formal parameters.
True or False
False
Which can be used to assign a default value to IN parameters?
:=
Assignment operator
DEFAULT
All the options
All the options
The parameter modes are specified in:
FORMAL PARAMETER
ACTUAL PARAMETER
FORMAL PARAMETER
The type of parameter that is declared in procedure heading is called ______.
ACTUAL
FORMAL
FORMAL
Which type of parameter passing uses an association operator?
Positional
Named
IN OUT
Combination
Named
When invoking a function as part of a PL/SQL expression, you can use a (LOCAL VARIABLE) to store the returned result.
True or False
True
In PL/SQL (EXPRESSIONS), the function identifier acts like a variable whose value depends on the parameters passed to it.
True or False
True
The functions used in SQL statements cannot use ____ or IN OUT modes.
OUT
IN
OUT
The (OR REPLACE) is added to CREATE PROCEDURE clause to overwrite an existing procedure.
True or False
True
In Procedure, the default parameter mode is (IN).
True or False
True
In anonymous block, DECLARE states “this is the start of a block”. In Procedure, (CREATE PROCEDURE) states “this is the start of a subprogram”.
True or False
True
The positional parameter passing uses the associate operator.
True or False
False
The Positional parameter passing is the common method of passing parameters.
True or False
True
Another way of initializing a default value for parameter is by using assignment operator.
True or False
False
A function must have a (RETURN) clause in the header and at least one RETURN statement in the executable section..
True or False
True
The purpose of the OR REPLACE clause is to (OVERWRITE) an existing procedure.
True
False
True