MySQL Database Quiz Questions

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

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

Q2
True / False

A table in MySQL with non-prime attributes that are transitively dependent on the primary key is considered to be in Third Normal Form (3NF).

Q3
True / False

If a MySQL table is in Third Normal Form (3NF), it automatically means it is also in Second Normal Form (2NF).

Q4
True / False

In MySQL, achieving Third Normal Form (3NF) involves ensuring that no column is transitively dependent on the primary key.

Q5
True / False

A table in MySQL can be in Third Normal Form (3NF) even if it has partial dependencies.

Q6
True / False

In MySQL, if a table is in Third Normal Form (3NF), it can still have redundancy issues.

Q7
True / False

In MySQL, converting a table from Second Normal Form (2NF) to Third Normal Form (3NF) may require splitting the table into multiple tables.

Q8
True / False

In MySQL, a table in Third Normal Form (3NF) should not have any non-key attributes that depend on other non-key attributes.

Q9
True / False

A MySQL table in Third Normal Form (3NF) might need additional foreign keys to maintain data integrity after decomposition.

Q10
True / False

In MySQL, normalization to Third Normal Form (3NF) always improves query performance.

Q11
Single Choice

Which of the following is a requirement for a table to be in the Third Normal Form (3NF) in MySQL?

Q12
Single Choice

In MySQL, which dependency is removed to achieve Third Normal Form (3NF)?

Q13
Single Choice

What is the primary benefit of ensuring a MySQL database is in Third Normal Form (3NF)?

Q14
Single Choice

Which of the following statements is true about a MySQL table that is in Third Normal Form (3NF)?

Q15
Single Choice

Consider a MySQL table with columns student_id, course_id, and instructor_name. If the table is in 3NF, which of the following must be true?

Q16
Single Choice

In MySQL, if a table is in 2NF but not in 3NF, which of the following issues might still be present?

Q17
Single Choice

Given a MySQL table Orders with columns order_id, customer_id, customer_name, and order_date, which of the following transformations would help achieve 3NF?

Q18
Single Choice

If a MySQL table Employees has the columns emp_id, dept_id, dept_name, salary, and is not in 3NF, which step would normalize it to 3NF?

Q19
Single Choice

Which of the following MySQL queries would help in checking if a table is in Third Normal Form (3NF)?

Q20
Single Choice

In a MySQL certification exam, you are asked to normalize a table Books with columns book_id, author_id, author_name, and publisher_name. To ensure the table is in Third Normal Form (3NF), which of the following is the correct approach?

Q21
Multiple Choice

Which SQL statement demonstrates the concept of Third Normal Form (3NF) by eliminating transitive dependencies in a table design?

SQL Code
CREATE TABLE employees (
 employee_id INT PRIMARY KEY,
 employee_name VARCHAR(100),
 department_id INT,
 salary DECIMAL(10, 2),
 FOREIGN KEY (department_id) REFERENCES departments(department_id)
);
CREATE TABLE departments (
 department_id INT PRIMARY KEY,
 department_name VARCHAR(100)
);
Q22
Multiple Choice

Which SQL code demonstrates moving from Second Normal Form (2NF) to Third Normal Form (3NF) by organizing data into related tables?

SQL Code
CREATE TABLE orders (
 order_id INT PRIMARY KEY,
 customer_id INT,
 order_date DATE
);
CREATE TABLE customers (
 customer_id INT PRIMARY KEY,
 customer_name VARCHAR(100),
 customer_address VARCHAR(255)
);
CREATE TABLE order_items (
 order_id INT,
 product_id INT,
 quantity INT,
 PRIMARY KEY (order_id, product_id),
 FOREIGN KEY (order_id) REFERENCES orders(order_id),
 FOREIGN KEY (product_id) REFERENCES products(product_id)
);
Q23
Multiple Choice

Which SQL snippet correctly represents a database design that adheres to Third Normal Form (3NF) by eliminating transitive dependencies?

SQL Code
CREATE TABLE books (
 book_id INT PRIMARY KEY,
 title VARCHAR(100),
 author_id INT,
 FOREIGN KEY (author_id) REFERENCES authors(author_id)
);
CREATE TABLE authors (
 author_id INT PRIMARY KEY,
 author_name VARCHAR(100)
);
CREATE TABLE publishers (
 publisher_id INT PRIMARY KEY,
 publisher_name VARCHAR(100)
);
Q24
Multiple Choice

Choose the SQL code that demonstrates achieving Third Normal Form (3NF) by eliminating all non-key dependencies in a table design.

SQL Code
CREATE TABLE products (
 product_id INT PRIMARY KEY,
 product_name VARCHAR(100),
 category_id INT,
 FOREIGN KEY (category_id) REFERENCES categories(category_id)
);
CREATE TABLE categories (
 category_id INT PRIMARY KEY,
 category_name VARCHAR(100)
);
Q25
Multiple Choice

Which SQL code best exemplifies the application of Third Normal Form (3NF) by organizing data into related tables and eliminating transitive dependencies?

SQL Code
CREATE TABLE students (
 student_id INT PRIMARY KEY,
 student_name VARCHAR(100)
);
CREATE TABLE courses (
 course_id INT PRIMARY KEY,
 course_name VARCHAR(100)
);
CREATE TABLE enrollments (
 enrollment_id INT PRIMARY KEY,
 student_id INT,
 course_id INT,
 FOREIGN KEY (student_id) REFERENCES students(student_id),
 FOREIGN KEY (course_id) REFERENCES courses(course_id)
);
Q26
Multiple Choice

Which SQL code snippet effectively eliminates transitive dependencies to achieve Third Normal Form (3NF) in a relational table?

SQL Code
CREATE TABLE orders (
 order_id INT PRIMARY KEY,
 customer_id INT,
 order_date DATE,
 FOREIGN KEY (customer_id) REFERENCES customers(customer_id)
);
CREATE TABLE customers (
 customer_id INT PRIMARY KEY,
 customer_name VARCHAR(100),
 customer_address VARCHAR(255)
);
Q27
Multiple Choice

Which SQL statement best demonstrates moving a table design to Third Normal Form (3NF) by addressing transitive dependencies?

SQL Code
CREATE TABLE employees (
 employee_id INT PRIMARY KEY,
 employee_name VARCHAR(100),
 department_id INT,
 salary DECIMAL(10, 2),
 FOREIGN KEY (department_id) REFERENCES departments(department_id)
);
CREATE TABLE departments (
 department_id INT PRIMARY KEY,
 department_name VARCHAR(100)
);
Q28
Multiple Choice

Choose the SQL code that correctly illustrates the transition from 2NF to 3NF by removing transitive dependencies in a table.

SQL Code
CREATE TABLE books (
 book_id INT PRIMARY KEY,
 title VARCHAR(100),
 author_id INT,
 publisher_id INT,
 FOREIGN KEY (author_id) REFERENCES authors(author_id),
 FOREIGN KEY (publisher_id) REFERENCES publishers(publisher_id)
);
CREATE TABLE authors (
 author_id INT PRIMARY KEY,
 author_name VARCHAR(100)
);
CREATE TABLE publishers (
 publisher_id INT PRIMARY KEY,
 publisher_name VARCHAR(100)
);
Q29
Multiple Choice

Which SQL code effectively organizes a database design into Third Normal Form (3NF) by eliminating all non-key dependencies?

SQL Code
CREATE TABLE students (
 student_id INT PRIMARY KEY,
 student_name VARCHAR(100)
);
CREATE TABLE addresses (
 address_id INT PRIMARY KEY,
 student_id INT,
 address VARCHAR(255),
 FOREIGN KEY (student_id) REFERENCES students(student_id)
);
Q30
Multiple Choice

Which SQL snippet best illustrates achieving Third Normal Form (3NF) by organizing data into related tables and removing transitive dependencies?

SQL Code
CREATE TABLE projects (
 project_id INT PRIMARY KEY,
 project_name VARCHAR(100)
);
CREATE TABLE teams (
 team_id INT PRIMARY KEY,
 team_name VARCHAR(100)
);
CREATE TABLE project_teams (
 project_id INT,
 team_id INT,
 PRIMARY KEY (project_id, team_id),
 FOREIGN KEY (project_id) REFERENCES projects(project_id),
 FOREIGN KEY (team_id) REFERENCES teams(team_id)
);