wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Oracle ch9

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Which of the following statements is correct about indexes?

a)

An index can be based on multiple columns of a table, but the columns must be of the same datatype.

b)

An index can be based on multiple columns of a table, but the columns must be adjacent and specified in the order that they are defined in the table.

c)

An index cannot have the same name as a table, unless the index and the table are in separate schemas.

d)

None of the above statements is correct!

2.

Which of these statements about indexes is incorrect?

a)

Indexes can limit the amount of data that is returned in the results.

b)

Indexes are mandatory objects for each column in a table.

c)

Indexes can help keep results in memory and bring back results faster.

d)

Without indexes, the entire table is scanned (full table scan) with each DML operation on the table.

3.

Why do not place indexes on all tables and column combinations?

a)

Because indexes are free.

b)

Because they have no impact on performance and space.

c)

Because indexes are mandatory.

d)

Because indexes have impact on performance and space!

4.

Which of the following statements is not a part of the structure of B-tree index?

a)

Root, which contains entries that point to the next level.

b)

Branch blocks, which in turn point to blocks at the next level.

c)

A bitmap segment consisting of a string of bits.

d)

The leaf blocks are doubly linked to facilitate the scanning of the index in an ascending as well as descending order of key values.

e)

The leaf nodes, which contain the index entries that point to rows in the table.

5.

An index is an optionally created database object used primarily to increase query performance.

a)

True

b)

False

6.

Bitmap indexes should not be used if:

a)

The cardinality (the number of distinct values) in the column is low.

b)

The cardinality (the number of distinct values) in the column is high.

c)

The number of rows in the table is high.

d)

The column is used in Boolean algebra operations.

7.

Multicolumn indexes are especially effective when you often use multiple columns in the WHERE clause when accessing a table?

a)

True

b)

False

8.

What is the type of the index that is created by the following command: SQL> CREATE INDEX cust_idx1 ON cust(last_name);

a)

Bitmap index

b)

B-tree index

c)

Partitioned index

d)

Memory index.

9.

For the same combination of columns; There can be only?

a)

Only two visible indexes

b)

Only one visible index

c)

Only three visible indexes

d)

Only four visible indexes

10.

What will Oracle do when trying to rebuild the index online?

a)

Oracle attempts to rollback on the table

b)

Oracle attempts to commit on the table

c)

Oracle attempts to acquire a lock on the table

d)

Oracle attempts to unlock any lock on the table

11.

Choose the correct statement after executing DROP VIEW statement to drop a view:

a)

The related data will be deleted

b)

The related base table will be dropped too

c)

The view will be dropped alone

d)

The related triggers will be dropped

12.

Which of the following types of database objects can't have synonym?

a)

Tables

b)

views

c)

Sequences

d)

indexes

13.

It is recommended that you separate tables and indexes into different tablespaces?

a)

True

b)

False

14.

Which statements are true about Cycle Values of a sequence?

a)

After an ascending sequence reaches its maximum value, you have to drop it.

b)

After an ascending sequence reaches its maximum value, it generates its minimum value.

c)

After a descending sequence reaches its minimum, it generates its maximum value.

d)

After a descending sequence reaches its minimum, you have to drop it.

15.

Which statement is false about Cache Options of a sequence?

a)

Specifies how many values of the sequence pre-allocates and keeps in memory for faster access.

b)

This integer value can have 28 or fewer digits.

c)

The minimum value for this parameter is 20.

d)

The minimum value for this parameter is 2

16.

The following SQL statement is used to display the "INV_SEQ" sequence DDL statement: select dbms_metadata.get_ddl('SEQUENCE','INV_SEQ') from dual;

a)

True

b)

False

17.

What are the two pseudo columns to access the sequence’s value?

a)

Forwardval

b)

Nextval

c)

Retreivedval

d)

Currval

18.

Views are stored queries as well as other complex expressions and SQL constructs?

a)

True

b)

False

19.

Choose the correct statements that describe the common uses of views:

a)

Adding privileges to the user

b)

Creation a User Account with password

c)

Provide an interface layer between an application and physical tables.

d)

Hide the complexity of an SQL query from an application.

20.

Any user in the database has access to the public synonym?

a)

True

b)

False