Professional Documents
Culture Documents
Correct
Correct
MYPROC1 will compile and execute successfully, except that the call to M
YFUNC1 will be treated as a comment and ignored.
p1 can have as many IN parameters as needed but f1 cannot have more than
two IN parameters
An exception section.
IN parameters.
True
False (*)
DBMS_OUTPUT.PUT_LINE(get_job(100));
get_job(100,v_job_id); (*)
v_job_id := get_job(100);
True
False (*)
find_sal(100,v_mynum);
v_mydate := find_sal(100);
find_sal(v_mynum,100);
B,E,F,D,A,C (*)
D,B,E,F,A,C
B,C,E,F,D,A
A,B,E,F,D,C
True
False (*)
v_name := get_country_name(100);
DBMS_OUTPUT.PUT_LINE(get_country_name(100));
SELECT upd_dept(department_id)
FROM employees;
SELECT upd_dept(80)
FROM dual;
True (*)
False
Correct
They can add business rules to the database and can be reused many times
.
They can do the same job as built-in system functions such as UPPER and
ROUND. (*)
RETURN BOOLEAN
An OUT parameter
COMMIT;
Incorrect. Refer to Section 9 Lesson 2.
Correct
1. User BOB is not a database administrator. BOB wants to
see the names of all the tables in his schema, as well as all the tables in othe
r users' schemas which he has privileges to use. Which Data Dictionary view woul
d BOB query to do this? Mark for Review
(1) Points
USER_TABLES
ALL_TABLES (*)
DBA_TABLES
USER_TAB_COLUMNS
Correct
FN_INDEX
fn_index FN_INDEX
Correct
We can use it like a Web search engine to remind ourselves of the names
of dictionary views.
Correct
It is a set of tables which can be updated by any user who has the neces
sary privileges.
It contains a list of all database tables which are not in any schema.
SELECT COUNT(*)
FROM user_objects;
DESCRIBE user_objects
GROUP BY object_type;
It allows the PL/SQL compiler to check for object existence; for example
, when creating a procedure which references a table, the PL/SQL compiler can ch
eck that the table exists.
An exception occurred
(*)
user_source
user_procedures
user_objects (*)
user_dependencies
user_subprograms
user_source (*)
user_procedures
user_objects
user_dependencies
user_errors
99 only (*)
99 and 999
999 only
2 (*)
SELECT on EMPLOYEES
ALTER on EMPLOYEES
CREATE on EMPLOYEES
None of the above
Correct
DELETE on FRED.DEPARTMENTS
Correct
1. Procedure GET_EMPS includes a SELECT ... FROM EMPLOYEES
. The procedure was created using Invoker's Rights. Which of the following state
ments are true? (Choose three.) Mark for Review
(1) Points
(Choose all correct answers)
The user who executes the procedure needs EXECUTE privilege on the proce
dure. (*)
The user who executes the procedure does not need any privileges.
The user who executes the procedure needs SELECT privilege on EMPLOYEES.
(*)
False (*)
True
False (*)
4. Users SYS (the DBA), TOM, DICK and HARRY each have an E
MPLOYEES table in their schemas. SYS creates a procedure DICK.SEL_EMP using Invo
ker's Rights which contains the following code:
SELECT ... FROM EMPLOYEES ... ;
HARRY now executes the procedure. Which employees table will be queried?
Mark for Review
(1) Points
SYS.EMPLOYEES
DICK.EMPLOYEES
HARRY.EMPLOYEES (*)
Correct
Correct
The procedure will fail because Curly does not have SELECT privilege on
NEWEMP.
The procedure will fail because there is no NEWEMP table in Curly's sche
ma. (*)
The procedure will fail because Curly does not have the EXECUTE ANY PROC
EDURE system privilege.