Oracle Database Quiz Questions

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

In Oracle, a table is in First Normal Form (1NF) if all its columns contain atomic (indivisible) values.

Q2
True / False

In Oracle, a table that contains duplicate rows is considered to be in First Normal Form (1NF).

Q3
True / False

In Oracle, having a column with multiple values (such as a comma-separated list) violates First Normal Form (1NF).

Q4
True / False

In Oracle, a table can be in First Normal Form (1NF) even if it contains NULL values.

Q5
True / False

In Oracle, the process of normalizing a table to First Normal Form (1NF) may involve creating additional tables.

Q6
True / False

In Oracle, a table in First Normal Form (1NF) must have a primary key.

Q7
True / False

In Oracle, if a table has nested tables or object types, it is considered to be in First Normal Form (1NF).

Q8
True / False

In Oracle, the use of composite keys can help achieve First Normal Form (1NF) by ensuring uniqueness of rows.

Q9
True / False

In Oracle, a table that includes JSON data types can still be in First Normal Form (1NF) as long as the JSON data is not queried in a way that breaks atomicity.

Q10
True / False

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

Q11
Single Choice

What is the primary goal of normalization in an Oracle database?

Q12
Single Choice

Which normal form (NF) ensures that each table in Oracle has a primary key and that all non-key attributes are dependent only on the primary key?

Q13
Single Choice

Which of the following is a characteristic of a table in First Normal Form (1NF) in Oracle?

Q14
Single Choice

Consider the following Oracle SQL scenario:Which normal form does this table structure likely represent?

Q15
Single Choice

Which of the following statements about Second Normal Form (2NF) is true in the context of Oracle databases?

Q16
Single Choice

Given the following Oracle SQL query:What normalization issue might this table have?

SQL Code
CREATE TABLE employees (
 employee_id NUMBER PRIMARY KEY,
 department_id NUMBER,
 salary NUMBER,
 department_name VARCHAR2(50)
);
Q17
Single Choice

In Oracle databases, what does Third Normal Form (3NF) specifically eliminate?

Q18
Single Choice

Consider the following Oracle SQL scenario:What normalization issue might this table have, assuming each course is associated with one department?

SQL Code
CREATE TABLE student_grades (
 student_id NUMBER,
 course_id NUMBER,
 grade CHAR(1),
 course_name VARCHAR2(50),
 department_id NUMBER,
 department_name VARCHAR2(50),
 PRIMARY KEY (student_id, course_id)
);
Q19
Single Choice

Which Oracle SQL command would you use to normalize the student_grades table by removing the transitive dependency identified in the previous question?

Q20
Single Choice

Consider the following Oracle SQL scenario:What steps would you take to normalize this table to 3NF?

SQL Code
CREATE TABLE employees (
 employee_id NUMBER PRIMARY KEY,
 first_name VARCHAR2(50),
 last_name VARCHAR2(50),
 manager_id NUMBER,
 hire_date DATE,
 department_id NUMBER,
 salary NUMBER,
 department_name VARCHAR2(50)
);
Q21
Multiple Choice

Which SQL code snippet demonstrates a table that satisfies First Normal Form (1NF) in Oracle?

SQL Code
CREATE TABLE customers (
customer_id NUMBER PRIMARY KEY,
customer_name VARCHAR2(100),
customer_phone VARCHAR2(15)
);
Q22
Multiple Choice

Which SQL code snippet correctly removes partial dependencies to satisfy Second Normal Form (2NF)?

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

Which SQL code snippet eliminates transitive dependencies to achieve Third Normal Form (3NF)?

SQL Code
CREATE TABLE sales (
sale_id NUMBER PRIMARY KEY,
customer_id NUMBER,
sale_date DATE,
FOREIGN KEY (customer_id) REFERENCES customers(customer_id)
);
Q24
Multiple Choice

Which SQL code snippet demonstrates a table design that complies with Boyce-Codd Normal Form (BCNF)?

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

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

SQL Code
CREATE TABLE student_courses (
student_id NUMBER,
course_id NUMBER,
instructor_id NUMBER,
PRIMARY KEY (student_id, course_id, instructor_id)
);
Q26
Multiple Choice

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

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

Which SQL code snippet demonstrates the normalization of a table from Second Normal Form (2NF) to Third Normal Form (3NF)?

SQL Code
CREATE TABLE order_details (
order_id NUMBER,
product_id NUMBER,
product_name VARCHAR2(100),
quantity NUMBER,
PRIMARY KEY (order_id, product_id)
);
Q28
Multiple Choice

Which SQL code snippet demonstrates a table that adheres to Fourth Normal Form (4NF) by eliminating multi-valued dependencies?

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)
);
Q29
Multiple Choice

Which SQL code snippet shows a table design normalized to Fifth Normal Form (5NF) by decomposing complex relationships?

SQL Code
CREATE TABLE contracts (
contract_id NUMBER PRIMARY KEY,
client_id NUMBER,
service_id NUMBER,
FOREIGN KEY (client_id) REFERENCES clients(client_id),
FOREIGN KEY (service_id) REFERENCES services(service_id)
);
Q30
Multiple Choice

Which SQL code snippet represents a certification-level scenario involving the normalization of a table to Third Normal Form (3NF)?

SQL Code
CREATE TABLE inventory (
product_id NUMBER PRIMARY KEY,
warehouse_id NUMBER,
quantity NUMBER,
FOREIGN KEY (warehouse_id) REFERENCES warehouses(warehouse_id)
);