Quiz DP 16
Quiz DP 16
Quiz DP 16
Correct
3. Which of the following best describes the function of the CURRVAL virtual column?
Mark for Review
(1) Points
The CURRVAL virtual column will increment a sequence by a specified value.
The CURRVAL virtual column will return a value of 1 for a parent record in a
hierarchical result set.
The CURRVAL virtual column will display either the physical locations or the logical
locations of the rows in the table.
The CURRVAL virtual column will display the integer that was most recently
supplied by a sequence. (*)
Correct
4. Creating a sequence with NOCACHE ensures that all numbers in the sequence's range
will be used successfully. True or False? Mark for Review
(1) Points
True
False (*)
Correct
5. A gap can occur in a sequence because a user generated a number from the sequence
and then rolled back the transaction. True or False? Mark for Review
(1) Points
True (*)
False
Correct
Section 16 Quiz
(Answer all questions in this section)
6. Evaluate this statement:
Mark for Review
(1) Points
CREATE SEQUENCE line_item_id_seq
MINVALUE 100 MAXVALUE 130 INCREMENT BY -10 CYCLE;
Correct
7. You create a sequence with the following statement:
Mark for Review
CREATE SEQUENCE my_emp_seq; (1) Points
Which of the following statements about this sequence are true? (Choose two)
(Choose all correct answers)
MAXVALUE is 10^27 for an ascending sequence. (*)
MINVALUE is equal to 1. (*)
When the sequence exceeds its maximum value it will continue to generate
numbers starting with MINVALUE.
The sequence will not cache a range of numbers in memory.
Correct
9. Evaluate this statement:
Mark for Review
CREATE INDEX sales_idx ON oe.sales (status); (1) Points
Correct
10. It is possible to have an indexed column in a table where a value in the table column
does not exist in the index. True or False? Mark for Review
(1) Points
True
False (*)
Correct
Section 16 Quiz
(Answer all questions in this section)
11. The EMPLOYEES table contains these columns:
Mark for Review
(1) Points
EMP_ID NOT NULL, Primary Key
SSNUM NOT NULL, Unique
LAST_NAME VARCHAR2(25)
FIRST_NAME VARCHAR2(25)
DEPT_ID NUMBER Foreign Key to DEPT_ID column of the DEPARTMENTS table
SALARY NUMBER(8,2)
Correct
12. The CLIENTS table contains these columns:
Mark for Review
(1) Points
CLIENT_ID NUMBER(4) NOT NULL PRIMARY KEY
LAST_NAME VARCHAR2(15)
FIRST_NAME VARCHAR2(10)
CITY VARCHAR2(15)
STATE VARCHAR2(2)
You want to create an index named ADDRESS_INDEX on the CITY and STATE
columns of the CLIENTS table. You execute this statement:
Correct
13. You need to determine the table name and column name(s) on which the SALES_IDX
index is defined. Which data dictionary view would you query? Mark for Review
(1) Points
USER_OBJECTS
USER_INDEXES
USER_IND_COLUMNS (*)
USER_TABLES
Correct
15. In SQL what is a synonym?
Mark for Review
(1) Points
A table with the same number of columns as another table
A different name for a table, view, or other database object (*)
A table that must be qualified with a username
A table with the same name as another view
Correct