Deck 3: Table Creation and Management
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/136
Play
Full screen (f)
Deck 3: Table Creation and Management
1
The precision of a NUMBER does not include the decimal point itself in the total number of digits that can be stored in a column.
True
2
If the CREATE TABLE is being used to create a table from existing data,the SUBQUERY keyword must be used.
False
3
The scale of a NUMBER column indicates the number of digits that can be displayed to the right of the decimal point.
True
4
A database must be shut down before the ALTER TABLE command can be executed.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
5
The MODIFY TABLE command can be used to change the size of a table.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
6
A table name can consist of numbers,letters,and blank spaces.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
7
A column name can consist of up to 225 characters.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
8
An automatic column will generate a value at runtime and may reference values from other columns.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
9
The CREATE TABLE cannot contain a subquery.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
10
The default format of a DATE column in Oracle 12c is DD-MON-YY.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
11
Every table name within a specific schema must be unique.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
12
The maximum width of a VARCHAR2 column is 2000 characters.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
13
The ALPHANUMERIC datatype can be used to store characters and numbers to a maximum width of 2000.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
14
The default size of a VARCHAR2 column is one character.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
15
The INTERVAL datatype can be used to identify a specific interval,or amount,of time.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
16
A database object is a defined,self-contained structure in Oracle 12c.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
17
The structure of a table can be viewed by issuing the STRUCTURE command.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
18
A table name can be up to 30 characters in length.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
19
A datatype identifies the type of data to be stored in a column.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
20
DML commands are used to create or modify database tables.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
21
When a column is deleted,the deletion is permanent.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
22
You cannot delete the last column in a table.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
23
The scale of a NUMBER column indicates the total number of digits that can be stored in the column._________________________
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
24
You cannot specify the width for a(n)NUMBER column._________________________
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
25
DDL commands are used to create or modify database objects._________________________
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
26
A CHAR column cannot be resized to a width that is smaller than the data it already contains.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
27
Using the DESC on a table will display hidden columns.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
28
The DELETE TABLE command can be used to remove a table from a database.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
29
SELECT9 is a valid table name._________________________
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
30
The USER_TAB_COLS data dictionary object contains a column to identify hidden columns.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
31
The RENAME command can be used to assign a table to a new schema.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
32
Data manipulation language commands are used to create or modify database tables._________________________
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
33
A table name must begin with a(n)number._________________________
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
34
To retain the structure of a table,while deleting all its data and releasing their storage space,execute the TRUNC command.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
35
The maximum width of a(n)CHAR column is 4000 characters._________________________
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
36
The DROP TABLE command can be used to remove a table and all its data from a database.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
37
A table that has been dropped without the PURGE option can be retrieved using the FLASHBACK TABLE command.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
38
The ALTER TABLE name can be used to rename a table.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
39
Only one column can be added to an existing table at one time.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
40
The CHAR datatype is used to store variable-length data that can consist of letters and numbers._________________________
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
41
The maximum width of a NUMBER column is 25 digits._________________________
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
42
Which of the following is a valid table name?
A) MYTABLE
B) DISTINCT
C) SELECT
D) CHAR
A) MYTABLE
B) DISTINCT
C) SELECT
D) CHAR
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
43
The MODIFY clause can be included in the ALTER TABLE command to add a default value to an existing column._________________________
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
44
Which of the following terms refers to commands that are used to create or modify database tables?
A) data manipulation language (DML)
B) data control language (DCL)
C) data definition language (DDL)
D) data formatting language (DFL)
A) data manipulation language (DML)
B) data control language (DCL)
C) data definition language (DDL)
D) data formatting language (DFL)
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
45
Once a column as been set as UNUSED,it cannot be recovered._________________________
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
46
The DROP COLUMN clause of the ALTER TABLE command can only be used to delete one column at a time._________________________
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
47
The width of a NUMBER column cannot be changed once it contains data._________________________
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
48
The data contained in a dropped table can be retrieved if the DROP option was not used in the DROP TABLE command._________________________
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
49
The CHANGE TABLE command can be used to modify an existing table._________________________
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
50
The default size of the CHAR column is 2._________________________
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
51
The MODIFY clause can be used with the ALTER TABLE command to add a column to an existing table._________________________
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
52
The TRUNCATE TABLE command can be used to delete a table from a database._________________________
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
53
The DELETE TABLE command can be used to delete all the data stored in a table and release the storage space,yet retain the structure of the table._________________________
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
54
A table must contain a minimum of two columns._________________________
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
55
The abbreviation for the DESCRIBE command is DES._________________________
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
56
The syntax of the CREATE TABLE command requires that the column list be enclosed in parentheses._________________________
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
57
Seven bytes are allocated in a DATE column to store the century,year,month,day,hour,minute,and second of a date._________________________
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
58
Which keywords are used to complete the deletion of a column previously marked with SET UNUSED?
A) DELETE UNUSED COLUMNS
B) DROP UNUSED COLUMNS
C) UNSET UNUSED COLUMNS
D) DROP SET COLUMNS
A) DELETE UNUSED COLUMNS
B) DROP UNUSED COLUMNS
C) UNSET UNUSED COLUMNS
D) DROP SET COLUMNS
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
59
The CREATE TABLE command is used to create a table in Oracle 12c._________________________
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
60
More than one column can be changed at a time with the ALTER TABLE...MODIFY command._________________________
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
61
Which command instructs Oracle 12c to create a new table from existing data?
A) CREATE NEW TABLE
B) CREATE TABLE...FROM
C) CREATE TABLE
D) CREATE TABLE...AS
A) CREATE NEW TABLE
B) CREATE TABLE...FROM
C) CREATE TABLE
D) CREATE TABLE...AS
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
62
Which of the following datatypes refers to fixed-length character data,where n represents the maximum length of the column?
A) CHAR(n)
B) VARCHAR(n)
C) VARCHAR2(n)
D) LONG
A) CHAR(n)
B) VARCHAR(n)
C) VARCHAR2(n)
D) LONG
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
63
The column definition of NUMBER(7,4)indicates a precision of ____.
A) 7
B) 4
C) 11
D) 3
A) 7
B) 4
C) 11
D) 3
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
64
In which format does Oracle 12c display a date value?
A) DD-MON-YEAR
B) DAY-MM-YY
C) DD-MM-YY
D) DD-MON-YY
A) DD-MON-YEAR
B) DAY-MM-YY
C) DD-MM-YY
D) DD-MON-YY
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
65
The maximum width of the NUMBER datatype is ____ digits.
A) 7
B) 30
C) 38
D) 255
A) 7
B) 30
C) 38
D) 255
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
66
When defining columns for a table in the CREATE TABLE command,the column list must be enclosed in which of the following symbols?
A) " "
B) ' '
C) ( )
D) | |
A) " "
B) ' '
C) ( )
D) | |
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
67
Which of the following symbols can be used in a column name?
A) %
B) *
C) #
D) '
A) %
B) *
C) #
D) '
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
68
Which of the following is a valid SQL statement?
A) CREATE TABLE newname (colA NUMBER,colB DATE);
B) CREATE TABLE newname as SELECT * FROM books;
C) CREATE TABLE newname (colA,colB);
D) CREATE TABLE newname (colA DATE,colB VARCHAR2(3);
A) CREATE TABLE newname (colA NUMBER,colB DATE);
B) CREATE TABLE newname as SELECT * FROM books;
C) CREATE TABLE newname (colA,colB);
D) CREATE TABLE newname (colA DATE,colB VARCHAR2(3);
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
69
Which of the following is a valid table name in Oracle 12c?
A) jimm8 Y%c _5_H76ang
B) S_c#oT#2t_321sM#_i_T6h
C) 2LaN_n23_es#M#m
D) mAU$reE78_&_n1
A) jimm8 Y%c _5_H76ang
B) S_c#oT#2t_321sM#_i_T6h
C) 2LaN_n23_es#M#m
D) mAU$reE78_&_n1
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
70
Which of the following symbols cannot be used in a table name?
A) _
B) %
C) #
D) none of the above
A) _
B) %
C) #
D) none of the above
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
71
Which of the following rules apply to table names in Oracle 12c?
A) Names can contain blank spaces.
B) Names can be up to 225 characters in length.
C) Names can begin with a number.
D) Names can contain a number sign (#).
A) Names can contain blank spaces.
B) Names can be up to 225 characters in length.
C) Names can begin with a number.
D) Names can contain a number sign (#).
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
72
Which of the following is a valid column name?
A) VARCHAR2
B) DISTINCT
C) NEW_COLUMN
D) CHAR
A) VARCHAR2
B) DISTINCT
C) NEW_COLUMN
D) CHAR
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
73
What is the maximum width that can be assigned to a DATE column?
A) 1
B) 8
C) 12
D) none of the above
A) 1
B) 8
C) 12
D) none of the above
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
74
A(n)____ simply identifies the type of data that Oracle 12c will be expected to store in a column.
A) data definition
B) data format
C) datatype
D) data record
A) data definition
B) data format
C) datatype
D) data record
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
75
When defining columns for a table,which of the following symbols is used to separate the column names in the column list?
A) " "
B) ,
C) ( )
D) | |
A) " "
B) ,
C) ( )
D) | |
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
76
When creating a table,which of the following statements is correct?
A) The schema of the table must be explicitly stated.
B) A user can have two tables with the same name,as long as the column names are different.
C) The column list must be enclosed in parentheses ( ).
D) Default values cannot be assigned to all columns in a table.
A) The schema of the table must be explicitly stated.
B) A user can have two tables with the same name,as long as the column names are different.
C) The column list must be enclosed in parentheses ( ).
D) Default values cannot be assigned to all columns in a table.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
77
If a column is defined as NUMBER(5,2),which of the following is true?
A) The column can store a total of 7 digits,with 5 on the left side of the decimal point,and 2 on the right.
B) The column can store a total of 7 digits,all of them on the right side of the decimal point.
C) The column can store a total of 5 digits,with 3 on the left side of the decimal point,and 2 on the right.
D) The column can store a total of 5 digits,all of them on the left side of the decimal point.
A) The column can store a total of 7 digits,with 5 on the left side of the decimal point,and 2 on the right.
B) The column can store a total of 7 digits,all of them on the right side of the decimal point.
C) The column can store a total of 5 digits,with 3 on the left side of the decimal point,and 2 on the right.
D) The column can store a total of 5 digits,all of them on the left side of the decimal point.
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
78
Which of the following datatypes refers to variable-length character data,where n represents the maximum length of the column?
A) CHAR(n)
B) BFILE
C) VARCHAR2(n)
D) LONG
A) CHAR(n)
B) BFILE
C) VARCHAR2(n)
D) LONG
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
79
Which command instructs Oracle 12c to create a new table?
A) CREATE NEW TABLE
B) CREATE TABLE...FROM
C) CREATE TABLE
D) ALTER TABLE
A) CREATE NEW TABLE
B) CREATE TABLE...FROM
C) CREATE TABLE
D) ALTER TABLE
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck
80
Which of the following rules does not apply to column names in Oracle 12c?
A) Column names can contain numbers.
B) Column names can be up to 30 characters in length.
C) Column names must begin with a letter.
D) Column names can contain an ampersand (&).
A) Column names can contain numbers.
B) Column names can be up to 30 characters in length.
C) Column names must begin with a letter.
D) Column names can contain an ampersand (&).
Unlock Deck
Unlock for access to all 136 flashcards in this deck.
Unlock Deck
k this deck