user_objects (*)
user_subprograms
user_source
user_dependencies
Correct
CHILD1 ends abruptly; PARENT handles the exception and then ends; CHILD2 does
not execute. (*)
PARENT does not compile because you cannot use NULL; in an exception handler.
CHILD1 ends abruptly; PARENT also ends abruptly and returns an unhandled
exception.
PARENT handles the exception, and then CHILD1 continues to execute.
Correct
A function can be used inside a SQL statement, while a procedure cannot. (*)
Correct
DBMS_OUTPUT.PUT_LINE(get_country_name(100));
v_name := get_country_name(100);
Correct
5.You try to create a function named MYFUNC. The function does not compile correctly
because there are errors in your code. Which Dictionary view can you query to see the Mark for Review
errors? (1) Points
USER_COMPILES
USER_SOURCE
USER_DEPENDENCIES
USER_OBJECTS
USER_ERRORS (*)
Correct
6.When must
AUTHID Mark for Review
CURRENT_USER (1) Points
be included in
an autonomous
transaction
subprogram?
When declaring Invoker's rights (*)
Correct
User BILL wants to execute this procedure. What privileges will BILL need?
BILL needs no privileges
Correct
SELECT
CREATE
DROP
DELETE
Correct
9. User COLLEEN owns an EMPLOYEES table and wants to allow user AYSE to
create indexes on the table. Which object privilege must Colleen grant to Mark for Review
Ayse? (1) Points
SELECT on EMPLOYEES
CREATE on EMPLOYEES
None of these
ALTER on EMPLOYEES
Correct
10. You want to display the names of all tables in your schema, but you have
forgotten which Dictionary view to query. Which of the following will remind Mark for Review
you of the name of the correct Dictionary view? (1) Points
HELP DICTIONARY
SELECT *
FROM DICTIONARY
WHERE table_name LIKE 'DBA%TABLE%';
SELECT *
FROM DICTIONARY
WHERE table_name LIKE 'USER%TAB%';
(*)
SELECT *
FROM USER_OBJECTS
WHERE table_name LIKE '%TABLE%';
SELECT *
FROM DICTIONARY
WHERE table_name LIKE 'user%table%';
Correct
Section 9 Quiz
(Answer all questions in this section)
11.Which of the following will tell you how many functions you own?
Mark for Review
(1) Points
SELECT COUNT(*) FROM USER_OBJECTS;
12.User JOHN wants to see the names of all the tables in his schema. He does NOT want
to see the names of any tables in other users' schemas. Which Dictionary view should Mark for Review
he query? (1) Points
DBA_TABLES
USER_TABLES (*)
DICTIONARY
JOHN_TABLES
ALL_TABLES
They can add business rules to the database and can be reused many times. (*)
They can be used in a WHERE clause to filter data and thereby increase efficiency.
(*)
Correct
Correct
15.The function avg_ann_sal returns the average annual salary for a particular department.
The example below is a valid use of this function. True or False? Mark for Review
(1) Points
SELECT first_name, last_name
FROM employees
WHERE avg_ann_sal(20) > 15000;
True (*)
False
Correct