Oracle Database Quiz Questions

Course Name:Oracle
Chapter Name:Chapter 8 - RDBMS Concepts
Lesson Content Link:Third Normal Form
Current Quiz Count:30
Progress
0%
Q1
True / False

In Oracle, a table must be in Second Normal Form (2NF) before it can be considered in Third Normal Form (3NF).

Q2
True / False

In Oracle, a table is in Third Normal Form (3NF) if it has no transitive dependencies.

Q3
True / False

In Oracle, a table in Third Normal Form (3NF) can still have partial dependencies.

Q4
True / False

In Oracle, a transitive dependency occurs when a non-key attribute depends on another non-key attribute.

Q5
True / False

In Oracle, normalizing a table to Third Normal Form (3NF) helps reduce data redundancy and update anomalies.

Q6
True / False

In Oracle, to achieve Third Normal Form (3NF), it may be necessary to create additional tables and establish foreign key relationships.

Q7
True / False

In Oracle, a table in Third Normal Form (3NF) will always have fewer columns than a table in First Normal Form (1NF).

Q8
True / False

In Oracle, achieving Third Normal Form (3NF) can sometimes lead to performance trade-offs due to the need for additional joins.

Q9
True / False

In Oracle, all tables in Third Normal Form (3NF) are also in Boyce-Codd Normal Form (BCNF).

Q10
True / False

The Oracle Certified Professional (OCP) exam includes knowledge on the principles of normalization, including Third Normal Form (3NF), and how to apply these principles to design efficient database schemas.

Q11
Multiple Choice

Which SQL code snippet demonstrates creating a table that satisfies Third Normal Form (3NF) in Oracle?

SQL Code
CREATE TABLE orders (
order_id NUMBER PRIMARY KEY,
customer_id NUMBER,
order_date DATE,
FOREIGN KEY (customer_id) REFERENCES customers(customer_id)
);
Q12
Multiple Choice

Which SQL code snippet violates the Third Normal Form (3NF) by including a transitive dependency?

SQL Code
CREATE TABLE employees (
employee_id NUMBER PRIMARY KEY,
department_id NUMBER,
department_name VARCHAR2(100),
FOREIGN KEY (department_id) REFERENCES departments(department_id)
);
Q13
Multiple Choice

Which SQL code snippet correctly normalizes a table to Third Normal Form (3NF) by eliminating partial dependencies?

SQL Code
CREATE TABLE order_details (
order_id NUMBER,
product_id NUMBER,
quantity NUMBER,
PRIMARY KEY (order_id, product_id)
);
Q14
Multiple Choice

Which SQL code snippet demonstrates an advanced scenario ensuring a table is in Third Normal Form (3NF) by eliminating transitive dependencies?

SQL Code
CREATE TABLE sales (
sale_id NUMBER PRIMARY KEY,
product_id NUMBER,
sale_date DATE,
FOREIGN KEY (product_id) REFERENCES products(product_id)
);
Q15
Multiple Choice

Which SQL code snippet is most likely to require further normalization to achieve Third Normal Form (3NF)?

SQL Code
CREATE TABLE student_courses (
student_id NUMBER,
course_id NUMBER,
student_name VARCHAR2(100),
course_name VARCHAR2(100),
PRIMARY KEY (student_id, course_id)
);
Q16
Multiple Choice

Which SQL code snippet demonstrates a table that correctly meets the requirements of Third Normal Form (3NF)?

SQL Code
CREATE TABLE customer_orders (
order_id NUMBER PRIMARY KEY,
customer_id NUMBER,
order_date DATE,
FOREIGN KEY (customer_id) REFERENCES customers(customer_id)
);
Q17
Multiple Choice

Which SQL code snippet correctly removes a transitive dependency to ensure Third Normal Form (3NF)?

SQL Code
CREATE TABLE invoices (
invoice_id NUMBER PRIMARY KEY,
customer_id NUMBER,
invoice_date DATE,
FOREIGN KEY (customer_id) REFERENCES customers(customer_id)
);
Q18
Multiple Choice

Which SQL code snippet demonstrates splitting a table to meet Third Normal Form (3NF) requirements?

SQL Code
CREATE TABLE projects (
project_id NUMBER PRIMARY KEY,
project_name VARCHAR2(100),
manager_id NUMBER,
FOREIGN KEY (manager_id) REFERENCES managers(manager_id)
);
Q19
Multiple Choice

Which SQL code snippet would be considered properly normalized to Third Normal Form (3NF)?

SQL Code
CREATE TABLE departments (
department_id NUMBER PRIMARY KEY,
department_name VARCHAR2(100),
manager_id NUMBER,
FOREIGN KEY (manager_id) REFERENCES managers(manager_id)
);
Q20
Multiple Choice

Which SQL code snippet demonstrates a certification-level scenario where Third Normal Form (3NF) is enforced?

SQL Code
CREATE TABLE employees (
employee_id NUMBER PRIMARY KEY,
first_name VARCHAR2(50),
last_name VARCHAR2(50),
department_id NUMBER,
FOREIGN KEY (department_id) REFERENCES departments(department_id)
);
Q21
Single Choice

Which of the following correctly describes Third Normal Form (3NF) in Oracle databases?

Q22
Single Choice

Consider the following Oracle table:Why is this table not in Third Normal Form (3NF)?

SQL Code
CREATE TABLE employee (
 emp_id NUMBER,
 emp_name VARCHAR2(50),
 dept_id NUMBER,
 dept_name VARCHAR2(50),
 dept_location VARCHAR2(50),
 PRIMARY KEY (emp_id)
);
Q23
Single Choice

In Oracle, what action is necessary to bring a table from Second Normal Form (2NF) to Third Normal Form (3NF)?

Q24
Single Choice

Given the following Oracle table structure:Which of the following changes would normalize this table to Third Normal Form (3NF)?

SQL Code
CREATE TABLE orders (
 order_id NUMBER,
 customer_id NUMBER,
 customer_name VARCHAR2(50),
 order_date DATE,
 customer_address VARCHAR2(100),
 PRIMARY KEY (order_id)
);
Q25
Single Choice

Which of the following SQL scripts creates an Oracle table that adheres to Third Normal Form (3NF)?

Q26
Single Choice

Analyze the following Oracle SQL code:What modification is needed for this table to comply with Third Normal Form (3NF)?

SQL Code
CREATE TABLE employee_projects (
 emp_id NUMBER,
 proj_id NUMBER,
 proj_name VARCHAR2(50),
 proj_budget NUMBER,
 PRIMARY KEY (emp_id, proj_id)
);
Q27
Single Choice

You have the following Oracle table definition:How would you restructure this table to bring it into Third Normal Form (3NF)?

SQL Code
CREATE TABLE sales_data (
 sales_id NUMBER,
 product_id NUMBER,
 product_name VARCHAR2(100),
 category_name VARCHAR2(50),
 sales_amount NUMBER,
 PRIMARY KEY (sales_id)
);
Q28
Single Choice

Consider the following Oracle table:What must be done to ensure this table is in Third Normal Form (3NF)?

SQL Code
CREATE TABLE student_enrollments (
 student_id NUMBER,
 course_id NUMBER,
 instructor_id NUMBER,
 course_name VARCHAR2(50),
 instructor_name VARCHAR2(50),
 PRIMARY KEY (student_id, course_id)
);
Q29
Single Choice

Examine the Oracle table below:Which action would normalize this table to Third Normal Form (3NF)?

SQL Code
CREATE TABLE purchase_orders (
 order_id NUMBER,
 product_id NUMBER,
 supplier_id NUMBER,
 supplier_name VARCHAR2(100),
 product_name VARCHAR2(100),
 order_date DATE,
 PRIMARY KEY (order_id)
);
Q30
Single Choice

In Oracle, you have the following table:To bring this table into Third Normal Form (3NF), what should you do?

SQL Code
CREATE TABLE department (
 dept_id NUMBER,
 dept_name VARCHAR2(50),
 manager_id NUMBER,
 manager_name VARCHAR2(50),
 PRIMARY KEY (dept_id)
);