Q1
True / FalseIn Oracle, a table is in First Normal Form (1NF) if all its columns contain atomic (indivisible) values.
A table is in 1NF if each column contains only atomic values, meaning there are no repeating groups or arrays.
Q2
True / FalseIn Oracle, a table that contains duplicate rows is considered to be in First Normal Form (1NF).
1NF requires that each table has a primary key to ensure that each row is unique. Duplicate rows violate this principle.
Q3
True / FalseIn Oracle, having a column with multiple values (such as a comma-separated list) violates First Normal Form (1NF).
1NF requires that each column contain only a single value, so a column with multiple values violates this rule.
Q4
True / FalseIn Oracle, a table can be in First Normal Form (1NF) even if it contains NULL values.
A table can be in 1NF if it contains NULL values, as long as each column contains atomic values and there are no repeating groups.
Q5
True / FalseIn Oracle, the process of normalizing a table to First Normal Form (1NF) may involve creating additional tables.
To achieve 1NF, it may be necessary to decompose a table into multiple tables to eliminate repeating groups and ensure atomic values.
Q6
True / FalseIn Oracle, a table in First Normal Form (1NF) must have a primary key.
A primary key ensures that each row is unique, which is a requirement for a table to be in 1NF.
Q7
True / FalseIn Oracle, if a table has nested tables or object types, it is considered to be in First Normal Form (1NF).
Nested tables and object types can contain multiple values or complex structures, violating the atomicity requirement of 1NF.
Q8
True / FalseIn Oracle, the use of composite keys can help achieve First Normal Form (1NF) by ensuring uniqueness of rows.
Composite keys, which consist of multiple columns, can be used to uniquely identify rows and help achieve 1NF by ensuring no duplicate rows.
Q9
True / FalseIn 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.
If JSON data is stored but not queried in a way that breaks atomicity, the table can still be considered in 1NF.
Q10
True / FalseThe 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.
The OCP certification covers database design principles, including normalization, ensuring that candidates understand how to apply 1NF and other normalization forms to create efficient and reliable database schemas.
Q18
Single ChoiceConsider 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)
);
The department_name attribute likely depends on department_id rather than on the primary key (student_id, course_id), indicating a transitive dependency, which violates 3NF.
Q21
Multiple ChoiceWhich 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)
);
Options A, B, and C satisfy 1NF by ensuring that each column contains atomic values, and there are no repeating groups. Option D violates 1NF due to the presence of repeating groups.
Q22
Multiple ChoiceWhich 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)
);
Options A, B, and C correctly satisfy 2NF by ensuring all non-key attributes are fully functionally dependent on the composite primary key. Option D violates 2NF by having a partial dependency on the primary key.
Q23
Multiple ChoiceWhich 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)
);
Options A, B, and C correctly satisfy 3NF by removing transitive dependencies, ensuring non-key attributes depend only on the primary key. Option D violates 3NF by including a transitive dependency.
Q24
Multiple ChoiceWhich 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)
);
Options A, B, and C comply with BCNF by ensuring that every determinant is a candidate key, removing any partial and transitive dependencies. Option D violates BCNF by having a non-candidate key determinant.
Q25
Multiple ChoiceWhich 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)
);
Options A, B, and C demonstrate tables that may require further normalization to remove multi-valued dependencies, ensuring 4NF compliance. Option D is correctly normalized to 4NF.
Q26
Multiple ChoiceWhich 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)
);
Options A, B, and C correctly demonstrate 3NF compliance by ensuring that all non-key attributes depend only on the primary key, without any transitive dependencies. Option D violates 3NF due to a transitive dependency.
Q27
Multiple ChoiceWhich 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)
);
Options A, B, and C demonstrate normalizing the table to 3NF by removing the transitive dependency on `product_name`. Option D violates 3NF by retaining the transitive dependency.
Q28
Multiple ChoiceWhich 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)
);
Options A, B, and C demonstrate 4NF compliance by eliminating multi-valued dependencies. Option D violates 4NF by introducing multi-valued dependencies.
Q29
Multiple ChoiceWhich 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)
);
Options A, B, and C demonstrate 5NF compliance by decomposing the table to eliminate redundancy in complex relationships. Option D does not fully decompose the relationships, violating 5NF.
Q30
Multiple ChoiceWhich 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)
);
Options A, B, and C demonstrate correct 3NF normalization by ensuring that all non-key attributes depend only on the primary key. Option D violates 3NF by including a transitive dependency.