Oracle Database Quiz Questions

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

The CREATE TABLE statement in Oracle is used to create a new table in the database.

Q2
True / False

In Oracle, every table must have at least one column defined.

Q3
True / False

The data type of a column in an Oracle table can be specified when using the CREATE TABLE statement.

Q4
True / False

In Oracle, the CREATE TABLE statement can include constraints such as PRIMARY KEY, FOREIGN KEY, UNIQUE, and CHECK.

Q5
True / False

The CREATE TABLE statement in Oracle can include a DEFAULT value for a column.

Q6
True / False

In Oracle, the CREATE TABLE statement cannot reference other tables.

Q7
True / False

In Oracle, the CREATE TABLE statement can be used to create a partitioned table.

Q8
True / False

In Oracle, virtual columns can be defined in the CREATE TABLE statement.

Q9
True / False

In Oracle, you can create an INDEX as part of the CREATE TABLE statement.

Q10
True / False

The Oracle Certified Professional (OCP) exam includes knowledge on optimizing the CREATE TABLE statement for performance and storage management.

Q11
Single Choice

Which SQL command is used to create a new table in an Oracle database?

Q12
Single Choice

In the CREATE TABLE statement, which keyword is used to specify the data type for a column that stores text in Oracle?

Q13
Single Choice

Which of the following is a correct syntax to create a table named employees with a single column employee_id as a primary key?

Q14
Single Choice

What will be the result of the following Oracle SQL command?

SQL Code
CREATE TABLE departments (
 department_id NUMBER,
 department_name VARCHAR2(50),
 location_id NUMBER DEFAULT 100
);
Q15
Single Choice

Which Oracle SQL statement is used to create a table projects with a foreign key referencing the departments table?

SQL Code
CREATE TABLE projects (
 project_id NUMBER PRIMARY KEY,
 project_name VARCHAR2(100),
 department_id NUMBER,
 CONSTRAINT fk_dept FOREIGN KEY (department_id) REFERENCES departments(department_id)
);
Q16
Single Choice

What happens if you execute the following Oracle SQL command?

SQL Code
CREATE TABLE employees_copy AS SELECT * FROM employees;
Q17
Single Choice

Which of the following Oracle SQL statements creates a partitioned table?

SQL Code
CREATE TABLE sales (
 sale_id NUMBER,
 sale_date DATE,
 amount NUMBER
) PARTITION BY RANGE (sale_date) (
 PARTITION p1 VALUES LESS THAN (TO_DATE('2023-01-01', 'YYYY-MM-DD')),
 PARTITION p2 VALUES LESS THAN (TO_DATE('2024-01-01', 'YYYY-MM-DD'))
);
Q18
Single Choice

In Oracle, how can you create a table archive_employees that inherits the structure of an existing employees table without copying the data?

SQL Code
CREATE TABLE archive_employees AS SELECT * FROM employees WHERE 1=0;
Q19
Single Choice

Which of the following is a correct Oracle SQL command to create a temporary table?

SQL Code
CREATE GLOBAL TEMPORARY TABLE temp_orders (
 order_id NUMBER,
 order_date DATE
) ON COMMIT DELETE ROWS;
Q20
Single Choice

Which of the following is true about creating tables with the Oracle CREATE TABLE statement in an Oracle Exadata environment?

Q21
Multiple Choice

Identify the SQL scripts that correctly create a basic table with primary key constraints in Oracle.

Q22
Multiple Choice

Select the SQL scripts that correctly create a table with foreign key constraints in Oracle.

Q23
Multiple Choice

Determine the SQL scripts that correctly create a table with default values and check constraints in Oracle.

Q24
Multiple Choice

Identify the SQL scripts that correctly create a partitioned table in Oracle.

Q25
Multiple Choice

Select the SQL scripts that correctly create a table with index-organized storage in Oracle.

Q26
Multiple Choice

Determine the SQL scripts that correctly create a table with advanced storage options in Oracle.

Q27
Multiple Choice

Identify the SQL scripts that correctly create a table with virtual columns in Oracle.

Q28
Multiple Choice

Select the SQL scripts that correctly create a table with temporal validity in Oracle.

Q29
Multiple Choice

Determine the SQL scripts that correctly create a table with LOB (Large Object) columns in Oracle.

Q30
Multiple Choice

Identify the SQL scripts that correctly create a table with identity columns in Oracle.