You are on page 1of 4

1. Which of the following statements about the "super-view" DICTIONARY is true?

Mark for Review (1) Points It lists all the dictionary views. It can be thought of as a "catalog of the master catalog". We can use it like a Web search engine to remind ourselves of the names of dictionary views. All of the above. (*) None of the above.

Correct 2. Which of the following is NOT a benefit of the Data Dictionary? Mark for Review (1) Points It allows us to remind ourselves of the names of our tables, in case we have fogotten them. It allows us to check which system privileges have been granted to us. It will speed up the execution of SELECT statements in which the WHERE c lause column is not indexed. (*) 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.

Correct 3. You have forgotten the name of the Dictionary view USER_TABLES. Which o f the following statements is the best and quickest way to remind yourself? Mark for Review (1) Points SELECT * FROM dictionary WHERE table_name LIKE USER%; Read the online Oracle documentation at http://technet.oracle.com.

SELECT * FROM dict WHERE table_name LIKE 'USER%TAB%'; (*)

SELECT * FROM dictionary WHERE table_name = 'USER_TABLES'; Phone the database administrator.

Correct 4. Which of the following best describes the Data Dictionary? Review (1) Points Mark for

It is a set of tables which can be updated by any user who has the neces sary privileges. It is an automatically managed master catalog of all the objects stored in the database. (*) It contains a backup copy of all the data in the database. It contains a list of all database tables which are not in any schema.

Correct 5. Which of the following will display how many objects of each type are i n a user's schema? Mark for Review (1) Points SELECT COUNT(*) FROM user_objects; SELECT object_type, COUNT(*) FROM user_objects GROUP BY object_type; (*)

SELECT object_type, COUNT(*) FROM all_objects GROUP BY object_type;

DESCRIBE user_objects GROUP BY object_type;

Correct 6. A user executes the following statement: CREATE INDEX fn_index ON employees(first_name); What output will the following statement now display: SELECT index_name FROM user_indexes WHERE index_name LIKE 'fn%'; Mark for Review (1) Points fn_index FN_INDEX fn_index FN_INDEX No output will be displayed (*)

Correct 7. User MARY executes the SQL statement: SELECT COUNT(*) FROM USER_VIEWS; A value of 15 is returned. Which of the following statements is true? Mark for Review (1) Points There are 15 views in Mary's schema. (*) Mary has created views on 15 of her tables. There are 15 views in the database. Other users have granted Mary SELECT privilege on 15 of their views.

Correct 8. 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 other users' schemas which he has privileges to use. Which Data Dictionary view would BOB query to d o this? Mark for Review (1) Points USER_TABLES ALL_TABLES (*) DBA_TABLES USER_TAB_COLUMNS None of the above.

Correct