Académique Documents
Professionnel Documents
Culture Documents
A procedure is invoked by
this command: Mark for Review
(1) Points
myproc('Smith',100,5000);
Positional (*)
Named
None of these.
Correct
Which one of the following calls to the procedure will NOT work?
myproc(80, 'Smith');
Correct
VARIABLE
NUMBER
CONSTANT
OUT
IN (*)
add_employee('Jones');
1000 (*)
NULL
The procedure will not compile because P_SALARY should have been coded
as DEFAULT 1000
Correct
You want to call the procedure, passing arguments of 10 for X and 20 for Z.
Which one of the following calls is correct?
numproc(x=10,z=20);
numproc(10,z=>20); (*)
numproc(x=>10,20);
numproc(10,,20);
Correct
6. Procedure SUBPROC
was created as: Mark for Review
(1) Points
CREATE
PROCEDURE
subproc
(p_param
VARCHAR2)
IS BEGIN ...
DECLARE
v_param
VARCHAR2(20) :=
'Smith';
BEGIN
subproc(v_param);
END;
Which of the
following is the
actual parameter?
Smith'
p_param
v_param (*)
None of these.
Correct
True
False (*)
Correct
True (*)
False
Correct
Correct
(p_param IN VARCHAR2)
(p_param employees.last_name%TYPE)
(p_param VARCHAR2)
(p_param IN NUMBER)
Correct
Correct
DECLARE
END (*)
EXCEPTION
REPLACE
BEGIN (*)
Correct
13. A PL/SQL stored procedure can
accept one or more input Mark for Review
parameters and can return one or
(1) Points
more output values to the calling
environment. True or False?
TRUE (*)
FALSE
Correct
Correct
Correct