Professional Documents
Culture Documents
Review your answers, feedback, and question scores below. An asterisk (*) indicates
a correct answer.
Section 8 Quiz
(Answer all questions in this section)
Two times
Eight times
Four times
One time
Correct Correct
The statement will fail because you cannot declare variables such as v_salary
inside a procedure.
The statement will fail because the procedure does not have any parameters.
Correct Correct
REPLACE
IS or AS (*)
END (*)
BEGIN (*)
DECLARE
Correct Correct
Easier to write
Correct Correct
Section 8 Quiz
(Answer all questions in this section)
6. What are the three parameter modes for procedures? Mark for
Review
(1) Points
add_employee('Jones');
NULL
1000 (*)
The procedure will not compile because P_SALARY should have been coded as
DEFAULT 1000
Correct Correct
The parameter value can be returned as a new value that is set within the
procedure. (*)
The parameter value passed into the subprogram is always returned unchanged
to the calling environment.
The parameter value can be returned as the original unchanged value. (*)
Correct Correct
9. When creating a procedure, where in the code must the parameters
be listed? Mark for Review
(1) Points
Correct Correct
defproc;
Correct Correct
Section 8 Quiz
(Answer all questions in this section)
They are both names of variables. A parameter is passed into the procedure,
while an argument is passed out of the procedure.
Correct Correct
12. You have created procedure MYPROC with a single parameter PARM1
NUMBER. Now you want to add a second parameter to the procedure. Which of the
following will change the procedure successfully? Mark for Review
(1) Points
The procedure cannot be modified. Once a procedure has been created, the
number of parameters cannot be changed.
Correct Correct
Correct Correct
15. Which one of the following statements about formal and actual
parameters is true? Mark for Review
(1) Points
Correct Correct