Oracle Database Quiz Questions

Course Name:Oracle
Chapter Name:Chapter 5 - DDL (Data Definition Language)
Lesson Content Link:ALTER TABLE
Current Quiz Count:30
Progress
0%
Q1
True / False

The ALTER TABLE statement in Oracle is used to modify the structure of an existing table.

Q2
True / False

In Oracle, you can use the ALTER TABLE statement to rename a column.

Q3
True / False

The ALTER TABLE statement in Oracle cannot be used to add a new column to an existing table.

Q4
True / False

In Oracle, you can use the ALTER TABLE statement to change the data type of an existing column.

Q5
True / False

The ALTER TABLE statement in Oracle can be used to add a primary key constraint to an existing table.

Q6
True / False

In Oracle, the ALTER TABLE statement can be used to drop a column from a table.

Q7
True / False

In Oracle, the ALTER TABLE statement can be used to move a table to a different tablespace.

Q8
True / False

In Oracle, the ALTER TABLE statement cannot be used to rename an existing table.

Q9
True / False

The ALTER TABLE statement in Oracle can be used to add a virtual column to an existing table.

Q10
True / False

The Oracle Certified Professional (OCP) exam includes topics on using the ALTER TABLE statement for advanced table modifications and optimizations.

Q11
Single Choice

Which Oracle SQL command is used to add a new column to an existing table?

Q12
Single Choice

What does the following Oracle SQL command do?

SQL Code
ALTER TABLE employees ADD email VARCHAR2(100);
Q13
Single Choice

How can you remove a column from an existing table in Oracle?

Q14
Single Choice

What will happen if you execute the following Oracle SQL command?

SQL Code
ALTER TABLE employees MODIFY salary NUMBER(10,2);
Q15
Single Choice

Which Oracle SQL statement is used to rename a column in an existing table?

SQL Code
ALTER TABLE employees RENAME COLUMN old_name TO new_name;
Q16
Single Choice

What does the following Oracle SQL command do?

SQL Code
ALTER TABLE orders ADD CONSTRAINT order_date_nn CHECK (order_date IS NOT NULL);
Q17
Single Choice

Which Oracle SQL command would you use to move an existing table to a different tablespace?

SQL Code
ALTER TABLE employees MOVE TABLESPACE new_tablespace;
Q18
Single Choice

What does the following Oracle SQL command accomplish?

SQL Code
ALTER TABLE employees MODIFY CONSTRAINT emp_dept_fk DEFERRABLE INITIALLY IMMEDIATE;
Q19
Single Choice

How would you compress a table to save storage space using an ALTER TABLE statement in Oracle?

SQL Code
ALTER TABLE sales COMPRESS FOR OLTP;
Q20
Single Choice

Which of the following is true regarding the use of the ALTER TABLE statement in Oracle for partitioned tables?

Q21
Multiple Choice

Identify the SQL scripts that correctly add a new column to an existing table using the ALTER TABLE statement in Oracle.

Q22
Multiple Choice

Select the SQL scripts that correctly modify a column's data type using the ALTER TABLE statement in Oracle.

Q23
Multiple Choice

Determine the SQL scripts that correctly drop a column from an existing table using the ALTER TABLE statement in Oracle.

Q24
Multiple Choice

Identify the SQL scripts that correctly add a constraint to an existing table using the ALTER TABLE statement in Oracle.

Q25
Multiple Choice

Select the SQL scripts that correctly rename a column using the ALTER TABLE statement in Oracle.

Q26
Multiple Choice

Identify the SQL scripts that correctly add multiple columns to an existing table using the ALTER TABLE statement in Oracle.

Q27
Multiple Choice

Determine the SQL scripts that correctly enable and disable a constraint using the ALTER TABLE statement in Oracle.

Q28
Multiple Choice

Select the SQL scripts that correctly change a column's default value using the ALTER TABLE statement in Oracle.

Q29
Multiple Choice

Identify the SQL scripts that correctly move a table to a new tablespace using the ALTER TABLE statement in Oracle.

Q30
Multiple Choice

Select the SQL scripts that correctly drop a constraint using the ALTER TABLE statement in Oracle.