Deck 6: Additional Database Objects
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/132
Play
Full screen (f)
Deck 6: Additional Database Objects
1
If the minimum value for a sequence is not specified, then NOMINVALUE will be assumed as the default.
True
2
When a sequence is created for internal control purposes, the values should not be cached otherwise gaps may appear in the sequence.
True
3
The highest possible value for a descending sequence is -1.
True
4
The NOCACHE option specifies that the sequence can generate a number only after a request has been made by a user.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
5
When a negative value is assigned to the INCREMENT BY clause of the CREATE SEQUENCE command, numeric values are generated in descending order.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
6
The START WITH clause is used to identify the starting numeric value for a synonym.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
7
A synonym is an alternate name assigned to a database object.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
8
The START WITH clause of a sequence cannot be reset with the ALTER SEQUENCE command.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
9
The highest possible value for a sequence can be specified through the MAXVALUE clause.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
10
The NEXTVALUE pseudocolumn is used to actually generate the next value in a sequence.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
11
The NEXTVAL pseudocolumn can be referenced in an INSERT command to add the value to a database table.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
12
The USER_SEQUENCES view of the data dictionary can be used to determine the current values and settings for a sequence.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
13
A sequence serves as a nickname for a database object.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
14
To change the starting value for a sequence, the sequence must be dropped and then re-created.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
15
When a positive value is assigned to the INCREMENT BY clause of the CREATE SEQUENCE command, numeric values are generated in descending order.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
16
By default, the START WITH clause has a value of one.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
17
Pre-generated sequence numbers that have not been used when the database is shut down will no longer be available when the database is restarted.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
18
By default, the lowest value that can be generated by a sequence is 0.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
19
A database index allows users and application programs to quickly locate specific records.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
20
After the highest possible value for a sequence has been reached, previous values can be reused if the NOCYCLE option has been specified.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
21
A Bitmap index is useful for improving queries on columns that have low cardinality.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
22
A function-based index can be used for queries that include searches based upon arithmetic expressions or functions.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
23
A(n) can be used to generate a series of numeric values. _________________________
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
24
A synonym is an alternate name assigned to database . _________________________
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
25
All synonyms are PUBLIC.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
26
A basic CREATE INDEX command will create a B-Tree index.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
27
The default beginning value for a sequence is _________________________
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
28
When a positive value is assigned to the INCREMENT BY clause of the CREATE SEQUENCE command, numeric values are generated in order. _________________________
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
29
The option prevents a sequence from regenerating previous values. _________________________
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
30
Both a minimum and maximum value can be defined for a(n) . _________________________
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
31
The lowest possible value for an increasing sequence is . _________________________
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
32
An index is implicitly created when a NOT NULL constraint is added to a table.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
33
A synonym can be created for any database object such as a table or sequence.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
34
The default value for the INCREMENT BY clause is _________________________
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
35
The USER_INDEXES data dictionary view can be used to verify existing indexes.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
36
A(n) can be used to generate a series of unique numbers. _________________________
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
37
A sequence can be used to speed up row retrieval.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
38
A column has low cardinality if it contains many distinct values.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
39
An explicitly created index can be dropped with the DROP INDEX command.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
40
The option can be used to have a sequence pre-generate a set of numbers before they are requested by a user. _________________________
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
41
Which of the following is defined in Oracle11g as simply anything that has a name and a defined structure?
A) object
B) index
C) synonym
D) sequence
A) object
B) index
C) synonym
D) sequence
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
42
A(n) ____ synonym is used by an individual to reference objects owned by that person.
A) unique
B) duplicated
C) public
D) private
A) unique
B) duplicated
C) public
D) private
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
43
A(n) can be created based on more than one column. _________________________
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
44
The data dictionary view displays information about all the relevant objects owned by the user. _________________________
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
45
are usually created for frequently referenced or searched columns. _________________________
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
46
Sequence settings can be altered using the command. _________________________
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
47
A(n) ____ synonym is used by others to access an individual's database objects.
A) unique
B) duplicated
C) public
D) private
A) unique
B) duplicated
C) public
D) private
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
48
The BY setting for a sequence cannot be changed with the ALTER SEQUENCE command. _________________________
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
49
A(n) is a collection of objects. _________________________
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
50
To create a PUBLIC synonym, the keyword must be used in the CREATE SYNONYM command. _________________________
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
51
A large table containing a particular column that is frequently referenced by a WHERE clause would probably benefit from a(n) . _________________________
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
52
An index is implicitly created whenever a(n) constraint is created for a table column. _________________________
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
53
A(n) can be used to quickly determine whether a value already exists in a specific column. _________________________
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
54
A(n) ____ generates sequential integers that can be used by organizations to assist with internal controls or simply to serve as a primary key for a table.
A) view
B) index
C) synonym
D) sequence
A) view
B) index
C) synonym
D) sequence
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
55
The USER_INDEXES data dictionary view can be used to verify existing indexes. _________________________
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
56
Which of the following can be used to provide an alternative, simplified name, to identify database objects?
A) view
B) index
C) synonym
D) sequence
A) view
B) index
C) synonym
D) sequence
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
57
Which of the following serves the same basic purpose as an index in a book, by allowing users to quickly locate specific records?
A) view
B) index
C) synonym
D) sequence
A) view
B) index
C) synonym
D) sequence
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
58
The pseudocolumn is used to generate the next value in a sequence. _________________________
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
59
The USER_SEQ data dictionary view can be used to verify sequence settings. _________________________
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
60
A sequence can be deleted from the database using the command. _________________________
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
61
Which command will create a synonym for a table?
A) CREATE SYNONYM synonymname IN tablename;
B) CREATE SYNONYM synonymname ON tablename;
C) CREATE SYNONYM synonymname REFERENCE tablename;
D) CREATE SYNONYM synonymname FOR tablename;
A) CREATE SYNONYM synonymname IN tablename;
B) CREATE SYNONYM synonymname ON tablename;
C) CREATE SYNONYM synonymname REFERENCE tablename;
D) CREATE SYNONYM synonymname FOR tablename;
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
62
Which of the following statements about sequences is incorrect?
A) A sequence can be used to generate unique names for database objects.
B) A sequence can be used to generate unique values to serve as a primary key.
C) A sequence can be used to generate sequential values for internal control purposes.
D) A sequence can be used to generate sequential numbers to track records like checks, invoices, and purchase orders.
A) A sequence can be used to generate unique names for database objects.
B) A sequence can be used to generate unique values to serve as a primary key.
C) A sequence can be used to generate sequential values for internal control purposes.
D) A sequence can be used to generate sequential numbers to track records like checks, invoices, and purchase orders.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
63
The ____ options are used to determine whether Oracle10g should begin reissuing values from the sequence once the minimum or maximum value has been reached.
A) CYCLE | NOCYCLE
B) MINIMUMVALUE | MAXIMUMVALUE
C) CACHE | NOCACHE
D) REORDER | NOREORDER
A) CYCLE | NOCYCLE
B) MINIMUMVALUE | MAXIMUMVALUE
C) CACHE | NOCACHE
D) REORDER | NOREORDER
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
64
Which of the following is a pseudocolumn?
A) CURRENTVAL
B) DUAL
C) NEXTVAL
D) both a and c
A) CURRENTVAL
B) DUAL
C) NEXTVAL
D) both a and c
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
65
If a sequence is set to pre-generate sequential values, ____ values will be generated at one time by default.
A) 5
B) 10
C) 15
D) 20
A) 5
B) 10
C) 15
D) 20
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
66
A negative number can be assigned to the ____ clause to generate sequential numbers in decreasing order.
A) DECREMENT BY
B) INCREMENT BY
C) DECREASE BY
D) GENERATE BY
A) DECREMENT BY
B) INCREMENT BY
C) DECREASE BY
D) GENERATE BY
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
67
Which command will create a sequence named NEWSEQUENCE to generate a series of integers?
A) CREATE SEQUENCE newsequence;
B) CREATE SEQUENCE STARTING WITH 5;
C) CREATE SEQUENTIAL newsequence STARTING WITH 5;
D) none of the above
A) CREATE SEQUENCE newsequence;
B) CREATE SEQUENCE STARTING WITH 5;
C) CREATE SEQUENTIAL newsequence STARTING WITH 5;
D) none of the above
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
68
When working with cached sequence values, which of the following is correct?
A) The cache option instructs Oracle10g to return the sequence values in the same order in which the user requests were received.
B) The cache option instructs Oracle10g not to generate any more numbers after the minimum or maximum value has been reached.
C) When a value has been generated and cached, that value has been assigned and cannot be regenerated until the sequence begins a new cycle.
D) The highest value for a cached number is 10^44.
A) The cache option instructs Oracle10g to return the sequence values in the same order in which the user requests were received.
B) The cache option instructs Oracle10g not to generate any more numbers after the minimum or maximum value has been reached.
C) When a value has been generated and cached, that value has been assigned and cannot be regenerated until the sequence begins a new cycle.
D) The highest value for a cached number is 10^44.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
69
Which command will delete a sequence?
A) ALTER SEQUENCE...DELETE
B) ALTER SEQUENCE...DROP
C) DELETE SEQUENCE sequencename
D) DROP SEQUENCE sequencename
A) ALTER SEQUENCE...DELETE
B) ALTER SEQUENCE...DROP
C) DELETE SEQUENCE sequencename
D) DROP SEQUENCE sequencename
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
70
To verify individual settings for the clauses of a sequence, you can query the ____ table in the data dictionary.
A) USER_SEQUENCES
B) V$SEQUENCES
C) DISPLAY_SEQUENCES
D) VIEW_SEQUENCES
A) USER_SEQUENCES
B) V$SEQUENCES
C) DISPLAY_SEQUENCES
D) VIEW_SEQUENCES
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
71
Which options are used in application cluster environments where multiple users may be requesting sequence values at the same time?
A) CYCLE | NOCYCLE
B) MINVALUE | MAXVALUE
C) VALUECACHE | NOVALUECACHE
D) ORDER | NOORDER
A) CYCLE | NOCYCLE
B) MINVALUE | MAXVALUE
C) VALUECACHE | NOVALUECACHE
D) ORDER | NOORDER
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
72
The ____ clause is used to specify the interval between two sequential values.
A) INTERVAL SIZE
B) INCREMENT BY
C) STEP BY
D) START WITH
A) INTERVAL SIZE
B) INCREMENT BY
C) STEP BY
D) START WITH
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
73
Which command will create an index?
A) CREATE INDEX indexname IN tablename (columnname)
B) CREATE INDEX indexname REFERENCE (columnname)
C) CREATE INDEX indexname ON tablename (columnname)
D) CREATE INDEX indexname INCREMENT BY (columnname)
A) CREATE INDEX indexname IN tablename (columnname)
B) CREATE INDEX indexname REFERENCE (columnname)
C) CREATE INDEX indexname ON tablename (columnname)
D) CREATE INDEX indexname INCREMENT BY (columnname)
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
74
Which of the following keywords is used to actually generate a sequence value?
A) NEXTVALUE
B) NEXTVAL
C) GENERATEVAL
D) GENERATE
A) NEXTVALUE
B) NEXTVAL
C) GENERATEVAL
D) GENERATE
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
75
Which of the following is used to establish a minimum or maximum value, respectively, for a sequence?
A) MINIMUMVALUE | MAXIMUMVALUE
B) MINVALUE | MAXVALUE
C) STARTWITH | ENDWITH
D) BEGINVALUE | ENDVALUE
A) MINIMUMVALUE | MAXIMUMVALUE
B) MINVALUE | MAXVALUE
C) STARTWITH | ENDWITH
D) BEGINVALUE | ENDVALUE
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
76
Which of the following statements about NEXTVAL and CURRVAL is incorrect?
A) The pseudocolumn NEXTVAL is used to actually generate the sequence value.
B) After the value is generated, it is stored in the CURRVAL pseudocolumn so it can be referenced again by a user.
C) A reference to CURRVAL will not cause Oracle10g to generate a new sequence number; a reference to NEXTVAL, however, will generate a new number.
D) NEXTVAL and CURRVAL are pseudocolumns that store unique names for database objects.
A) The pseudocolumn NEXTVAL is used to actually generate the sequence value.
B) After the value is generated, it is stored in the CURRVAL pseudocolumn so it can be referenced again by a user.
C) A reference to CURRVAL will not cause Oracle10g to generate a new sequence number; a reference to NEXTVAL, however, will generate a new number.
D) NEXTVAL and CURRVAL are pseudocolumns that store unique names for database objects.
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
77
Which command will modify a sequence?
A) ALTER SEQUENCE...MODIFY
B) ALTER SEQUENCE sequencename
C) ALTER SEQUENTIAL sequencename
D) CREATE OR REPLACE SEQUENCE
A) ALTER SEQUENCE...MODIFY
B) ALTER SEQUENCE sequencename
C) ALTER SEQUENTIAL sequencename
D) CREATE OR REPLACE SEQUENCE
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
78
Oracle10g will begin each sequence with the value of one, unless another value is specified in the ____ clause.
A) START WITH
B) INTERVAL SIZE
C) INCREMENT BY
D) VALUE START
A) START WITH
B) INTERVAL SIZE
C) INCREMENT BY
D) VALUE START
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
79
When creating a sequence, which of the following is not an optional clause?
A) INCREMENT BY value
B) CYCLE | NOCYCLE
C) MAXVALUE value | NOMAXVALUE
D) CREATE SEQUENCE
A) INCREMENT BY value
B) CYCLE | NOCYCLE
C) MAXVALUE value | NOMAXVALUE
D) CREATE SEQUENCE
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck
80
Which option is used to have Oracle11g pre-generate a set of values and store those values in the server's memory?
A) INTERVAL STORE
B) CACHE VALUE
C) CACHE
D) INCREMENT BY
A) INTERVAL STORE
B) CACHE VALUE
C) CACHE
D) INCREMENT BY
Unlock Deck
Unlock for access to all 132 flashcards in this deck.
Unlock Deck
k this deck