Practice Q's 14-18
Practice Q's 14-18
Practice Q's 14-18
(Chapter 14 - 18)
Chapter 14
1.
2.
You can determine if a column has a default value by querying the data
dictionary view USER_CONSTRAINTS.
True
False
3.
Unique indexes created by the primary key constraint are not stored in the
USER_INDEXES view.
True
False
4.
To find out how much space is allocated to a table or index, you can query
the USER_SEGMENTS table.
True
False
5.
True
False
Additional Q&A for Chapters 14-18; Oracle SQL by Example by Alice Rischert; Prentice Hall (2009)
Page 1 of 11
Version Date: 5/4/2009
6.
The SET DEFINE OFF command turns the use of the substitution
parameter, typically the ampersand (&) symbol, off.
True
False
7.
8.
The SET FEEDBACK 0 command shows the result of the SQL statement
on the screen.
True
False
9.
The v$ tables represent the static data dictionary. They can only be
updated by Oracle.
True
False
10.
True
False
1.
True
Additional Q&A for Chapters 14-18; Oracle SQL by Example by Alice Rischert; Prentice Hall (2009)
Page 2 of 11
Version Date: 5/4/2009
2.
False
3.
False
Unique indexes created by the primary key constraint are not stored in
the USER_INDEXES view.
4.
True
To find out how much space is allocated to a table or index, you can
query the USER_SEGMENTS table.
5.
True
6.
True
The SET DEFINE OFF command turns the use of the substitution
parameter, typically the ampersand (&) symbol, off.
7.
True
8.
False
9.
False
The v$ tables represent the static data dictionary. They can only be
updated by Oracle.
The v$ tables are referred to as the dynamic data dictionary views. They are
only updated by Oracle.
10.
True
Chapter 15
1.
2.
Any user can grant or revoke any type of system privilege to or from another
user.
True
False
3.
4.
5.
Both object and system privileges can be granted through a single role to a
user.
True
False
1.
True
2.
False
Any user can grant or revoke any type of system privilege to or from
another user.
Additional Q&A for Chapters 14-18; Oracle SQL by Example by Alice Rischert; Prentice Hall (2009)
Page 4 of 11
Version Date: 5/4/2009
3.
True
4.
False
5.
True
Both object and system privileges can be granted through a single role
to a user
Additional Q&A for Chapters 14-18; Oracle SQL by Example by Alice Rischert; Prentice Hall (2009)
Page 5 of 11
Version Date: 5/4/2009
Chapter 16
1.
You identify the relationship between the parent and the child by placing the
PRIOR operator before the parent column.
True
False
2.
To eliminate rows from the hierarchy tree, you use the WHERE clause.
True
False
3.
02/05/04
4:23 pm
04:23
Invalid query
4.
This is a
This is a sentence.
This
Invalid query
1.
True
You identify the relationship between the parent and the child by
Additional Q&A for Chapters 14-18; Oracle SQL by Example by Alice Rischert; Prentice Hall (2009)
Page 6 of 11
Version Date: 5/4/2009
2.
True
3.
04:23
To eliminate rows from the hierarchy tree, you use the WHERE clause.
Note: The regular expression checks for the time, not the date. It
requires that the string begins with a 0, 1 or 2. It validates that the
hour is of a format between 00:00 and 23:59.
4.
This is a
Chapter 17
1.
The OVER keyword as part of the analytical function syntax indicates that
the function operates after the results of the FROM, WHERE, GROUP BY,
and HAVING clauses have been formed.
True
False
2.
3.
Additional Q&A for Chapters 14-18; Oracle SQL by Example by Alice Rischert; Prentice Hall (2009)
Page 7 of 11
Version Date: 5/4/2009
True
False
4.
5.
6.
Additional Q&A for Chapters 14-18; Oracle SQL by Example by Alice Rischert; Prentice Hall (2009)
Page 8 of 11
Version Date: 5/4/2009
1.
True
2.
False
3.
True
4.
True
5.
False
6.
True
Chapter 18
1.
2.
A hint is enclosed by either a multiline comment with a plus sign (/*+ */) or
prefixed by a single line comment with a plus (--+).
Additional Q&A for Chapters 14-18; Oracle SQL by Example by Alice Rischert; Prentice Hall (2009)
Page 9 of 11
Version Date: 5/4/2009
True
False
3.
The ORDERED hint causes the tables to be joined in the order listed in the
FROM clause of the query.
True
False
4.
The nested loop join is typically the fastest join type if you want to join the
majority of data from two tables.
True
False
5.
If your statements use bind variables, you can eliminate the parsing step.
True
False
6.
7.
When joining tables make sure to choose the table that returns the largest
number of rows as the driving table.
True
False
Additional Q&A for Chapters 14-18; Oracle SQL by Example by Alice Rischert; Prentice Hall (2009)
Page 10 of 11
Version Date: 5/4/2009
1.
True
2.
True
3.
True
The ORDERED hint causes the tables to be joined in the order listed in
the FROM clause of the query.
4.
False
The nested loop join is typically the fastest join type if you want to
join the majority of data from two tables.
5.
True
If your statements use bind variables, you can eliminate the parsing
step.
6.
False
7.
False
When joining tables make sure to choose the table that returns the
largest number of rows as the driving table.
Additional Q&A for Chapters 14-18; Oracle SQL by Example by Alice Rischert; Prentice Hall (2009)
Page 11 of 11
Version Date: 5/4/2009