0
0
DBMS Theoryknowledge~20 mins

First Normal Form (1NF) in DBMS Theory - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
1NF Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding the core rule of 1NF

Which of the following best describes the main requirement of First Normal Form (1NF) in database design?

AAll columns must contain only numeric data types.
BEach column must contain atomic, indivisible values with no repeating groups.
CEach table must have a foreign key referencing another table.
DTables must be split into multiple databases.
Attempts:
2 left
💡 Hint

Think about how data is stored in each cell of a table.

🚀 Application
intermediate
2:00remaining
Identifying violation of 1NF

Given a table where a column 'PhoneNumbers' contains multiple phone numbers separated by commas in a single cell, what is the issue related to 1NF?

AThe column violates 1NF because it contains multiple values in one cell.
BThe column is correctly designed as it stores all phone numbers together.
CThe table violates 1NF because it lacks a primary key.
DThere is no violation; 1NF allows multiple values in one cell.
Attempts:
2 left
💡 Hint

Recall what atomic values mean in 1NF.

🔍 Analysis
advanced
2:00remaining
Analyzing a table for 1NF compliance

Consider a table with columns: StudentID, Name, and Courses. The 'Courses' column contains a list of course names separated by semicolons. What is the correct way to bring this table into 1NF?

ASplit the 'Courses' column so each course is in a separate row linked to the same StudentID.
BKeep the 'Courses' column as is because it shows all courses a student takes.
CCombine 'StudentID' and 'Courses' into one column to avoid lists.
DRemove the 'Courses' column entirely to comply with 1NF.
Attempts:
2 left
💡 Hint

Think about how to make each cell atomic without losing information.

Comparison
advanced
2:00remaining
Comparing 1NF with other normal forms

Which statement correctly distinguishes First Normal Form (1NF) from Second Normal Form (2NF)?

A1NF requires tables to be split into multiple databases; 2NF requires atomic columns.
B1NF requires no duplicate rows; 2NF requires atomic columns.
C1NF requires foreign keys; 2NF requires unique keys.
D1NF requires atomic columns; 2NF requires that all non-key columns depend fully on the primary key.
Attempts:
2 left
💡 Hint

Focus on the difference in dependency and atomicity rules.

Reasoning
expert
3:00remaining
Evaluating 1NF compliance in a complex scenario

A table stores customer orders with columns: OrderID, CustomerName, and ItemsOrdered. The 'ItemsOrdered' column contains JSON strings listing multiple items and quantities. Does this table comply with 1NF?

AYes, because JSON is a single string and counts as atomic data.
BYes, because 1NF allows complex data types like JSON in columns.
CNo, because storing JSON strings means the column contains multiple values, violating atomicity.
DNo, because the table lacks a composite primary key.
Attempts:
2 left
💡 Hint

Consider what atomic means beyond just data type.