Uploaded by Joey Lindon Mirabuenos

FA3 database.docx

advertisement
The purpose of the OR REPLACE clause is to ______ an existing procedure.
-overwrite
Subprograms are named PL/SQL blocks that are compiled and stored in the _______.
-database
In Procedure, all parameter modes must be specified.
-true
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
We can assign a default value to parameters.
-true
The DEFAULT keyword is used to assign a default value for formal parameters.
-true
The IN parameters can only be read within the procedure and cannot be modified.
-true
To invoke a procedure from another procedure, use a direct call inside an executable section of the block.
-true
The formal parameters can be literal values, variables, or expressions that are sent to the parameter list of a
called subprogram.
-false
If Combination notation is used, the _______ parameters must come first
-POSITIONAL
When invoking a function as part of a PL/SQL expression, you can use a _______ to store the returned result.
-local variable
In stored function, the ______ clause is used instead of OUT mode.
-RETURN
The functions used in SQL statements cannot use ____ or IN OUT modes.
-OUT
The block structure of the subprograms is similar to the structure of _____ blocks.
-anonymous
The _______ is added to CREATE PROCEDURE clause to overwrite an existing procedure.
-OR REPLACE
This study source was downloaded by 100000840055516 from CourseHero.com on 03-31-2022 00:30:50 GMT -05:00
https://www.coursehero.com/file/97706917/FA3-databasedocx/
In anonymous block, DECLARE states “this is the start of a block”. In Procedure, ____________ states “this is
the start of a subprogram”.
-CREATE PROCEDURE
In the given Procedure header, the underlined clause/keyword is optional.
CREATE OR REPLACE PROCEDURE name [parameters] IS|AS
-false
Subprograms are implicitly shared.
-false
If Combination notation is used, the positional parameters must come first before the named parameters.
-true
The code below is a correct example of passing parameters by combination notation.
add_dept (p_loc=>1400, 'EDUCATION' );
-true
The Named parameter passing is the common method of passing parameters.
-false
A function must have a _______ clause in the header and at least one RETURN statement in the executable
section.
-RETURN
A ______ is a named PL/SQL block that returns exactly one value.
-function
A function can be called as a part of:
-both options
A procedure is compiled and stored in the database as a schema object.
-true
This study source was downloaded by 100000840055516 from CourseHero.com on 03-31-2022 00:30:50 GMT -05:00
https://www.coursehero.com/file/97706917/FA3-databasedocx/
Powered by TCPDF (www.tcpdf.org)
Download