Ch 23: Boyce-Codd Normal Form (BCNF)

20 Questions20 MCQs0 Short Questions0 Long Questions
๐ŸŽฏ Exam Practice Papers
SEMESTER PASS

CS403 - Database Management Systems Examination Practice

Timed practice exam simulation for CS403 - Database Management Systems.

๐Ÿ“˜ VU MID TERM EXAMLectures 1 to 22
โฑ๏ธ 60 Mins

Mid Term Examination

Covers syllabus of Lectures 1 to 22 with 30 high-yield MCQs in a timed exam environment.

๐Ÿ“30 MCQs
โฑ๏ธ60 Minutes
๐Ÿ“— VU FINAL TERM EXAMLectures 23 to 45
โฑ๏ธ 90 Mins

Final Term Examination

Comprehensive semester exam preparation with 45 MCQs covering Lectures 23 to 45 with complete course coverage.

๐Ÿ“45 MCQs
โฑ๏ธ90 Minutes
Showing 1 โ€“ 10 of 20 Questions
Page 1 of 2
Q1
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 23๐Ÿท๏ธ 23.3. Physical Records and DenormalizationHard๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Consider a fully normalized relational database schema in Second Normal Form (2NF) with two tables: - STUDENTS(StudentID, StudentName, ClassID) - CLASSES(ClassID, CourseTitle, Venue) Under database maintenance guidelines, you are requested to perform a 'De-normalization' step to convert these tables back into a single, flat First Normal Form (1NF) relation. What is the correct flat schema representation and what specific anomalies will be reintroduced into the design?
๐Ÿ’ป sql Snippet
-- De-normalized Flat 1NF Schema:
CREATE TABLE STD_CLASS (
    StudentID INT,
    StudentName VARCHAR(50),
    ClassID CHAR(5),
    CourseTitle VARCHAR(100),
    Venue VARCHAR(50),
    PRIMARY KEY (StudentID)
);
  1. A.Flat Schema: STD_CLASS(StudentID, StudentName, ClassID, CourseTitle, Venue). Reintroduces redundant data storage, insertion anomalies (cannot add class venue until a student registers), deletion anomalies (losing student details deletes class details), and update anomalies (modifying a venue requires updates across multiple rows).
  2. B.Flat Schema: STD_CLASS(StudentID, StudentName, CourseTitle, Venue). Eliminates all primary keys, making physical row addressing impossible and introducing infinite loop query scenarios.
  3. C.Flat Schema: STD_CLASS(ClassID, CourseTitle, Venue). Discards student details completely, causing loss of referential integrity constraints and database compilation failures.
  4. D.Flat Schema: STUDENTS(StudentID, ClassID, Venue). Maintains 2NF properties but eliminates foreign key constraints to speed up analytical query rendering times.
Q2
๐Ÿง  Long Problem๐Ÿ“˜ CS403๐Ÿ“‘ Lec 23๐Ÿท๏ธ 23.3. Physical Records and DenormalizationHard๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Consider a fully normalized relational database schema in Second Normal Form (2NF) consisting of two tables: - STUDENTS (StudentID, StudentName, ClassID) - CLASSES (ClassID, CourseTitle, Venue) You are asked to perform a 'De-normalization' step to convert these tables back into a single flat First Normal Form (1NF) table named 'STD_CLASS' under 5 strict business rules...
๐Ÿ’ป sql Snippet
CREATE TABLE STD_CLASS (
    StudentID INT PRIMARY KEY,
    StudentName VARCHAR(50),
    ClassID CHAR(5),
    CourseTitle VARCHAR(100),
    Venue VARCHAR(50)
);
Q3
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 23๐Ÿท๏ธ 23.4. Horizontal PartitioningMedium๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
During physical database design, which of the following partitioning techniques reduces the chances of creating unbalanced partitions (data skewing) across physical storage media?
๐Ÿ’ป text Snippet
-- Conceptual Hash Partitioning mapping:
-- Partition_ID = Hash_Function(Key_Value) % Total_Partitions
  1. A.Vertical partitioning
  2. B.List partitioning
  3. C.Hash partitioning
  4. D.Range partitioning
Q4
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 23๐Ÿท๏ธ 23.4. Horizontal PartitioningMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following types of horizontal partitioning reduces the chances of unbalanced partitions (data skewing)?
  1. A.Vertical
  2. B.List
  3. C.Hash
  4. D.Range
Q5
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 23๐Ÿท๏ธ 23.1. Physical Record and De-normalizationMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following is NOT true with respect to the database design technique of De-normalization?
  1. A.A denormalized data model is not the same as a data model that has not been normalized.
  2. B.Denormalization takes place before the normalization process.
  3. C.It is an attempt to optimize the performance of database.
  4. D.Denormalization process cannot be initiated before the Database design is established.
Q6
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 23๐Ÿท๏ธ 23.4. Horizontal PartitioningMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
During physical database partition design, which of the following horizontal partitioning techniques reduces the chances of creating unbalanced partitions?
  1. A.Vertical partitioning
  2. B.List partitioning
  3. C.Hash partitioning
  4. D.Range partitioning
Q7
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 23๐Ÿท๏ธ 23.3. Physical Records and DenormalizationHard๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
To analyze normal form transformations, a database administrator wants to deliberately 'denormalize' a fully normalized Second Normal Form (2NF) database schema back into a single flat First Normal Form (1NF) table. Suppose we have two 2NF tables: - STUDENT(StudentID, StudentName, ProgramCode) - PROGRAM(ProgramCode, ProgramName, ProgramDuration) What is the correct structural process to merge and denormalize these relations back into a single flat 1NF table, and what is the primary side-effect of this transformation?
๐Ÿ’ป sql Snippet
-- Fully Normalized 2NF Tables:
-- STUDENT(StudentID, StudentName, ProgramCode)
-- PROGRAM(ProgramCode, ProgramName, ProgramDuration)
  1. A.Merge them into a single table: 'STUDENT_PROGRAM_FLAT(StudentID, StudentName, ProgramCode, ProgramName, ProgramDuration)'. The primary side-effect is that it re-introduces transitive dependencies, which can cause update, insertion, and deletion anomalies.
  2. B.Decompose the primary keys of both tables into single-attribute keys. The primary side-effect is that it prevents any transactions from executing due to concurrent locks.
  3. C.Convert all primary keys into unique composite indexes. The primary side-effect is that it deletes all previous records from the physical database container.
  4. D.Create a virtual database view that hides the 'ProgramCode' column. The primary side-effect is that it converts the physical tables into non-writable read-only schemas.
Q8
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 23๐Ÿท๏ธ 23.3. Physical Records and DenormalizationHard๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
You are given a fully normalized Second Normal Form (2NF) schema containing two tables: - STUDENTS(StudentID, StudentName, MajorCode) - MAJORS(MajorCode, MajorTitle, TotalCredits) Under database performance optimization guidelines, write the SQL code to perform a 'De-normalization' step to merge these two relations back into a single flat First Normal Form (1NF) relation. What is the resulting flat table structure, and what specific operational anomalies will be reintroduced?
๐Ÿ’ป sql Snippet
CREATE TABLE STUDENT_FLAT (
    StudentID INT PRIMARY KEY,
    StudentName VARCHAR(50),
    MajorCode CHAR(5),
    MajorTitle VARCHAR(100),
    TotalCredits INT
);
  1. A.CREATE TABLE STUDENT_FLAT(StudentID, StudentName, MajorCode, MajorTitle, TotalCredits). Reintroduces redundant data, insertion anomalies (cannot add a major without a student), deletion anomalies (deleting a student deletes major details), and update anomalies.
  2. B.CREATE TABLE STUDENT_FLAT(StudentID, MajorCode, MajorTitle). Eliminates student name, introducing referential dependency violations across all database structures.
  3. C.CREATE TABLE STUDENT_FLAT(StudentID, StudentName). Removes the major information entirely, avoiding logical duplicates but losing academic major historical tracking data.
  4. D.CREATE TABLE STUDENT_FLAT(MajorCode, MajorTitle). Converts the primary key of the students table to a foreign key to optimize search indexing speeds.
Q9
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 23๐Ÿท๏ธ 23.1. Data Volume and Usage AnalysisHardโญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
A database administrator (DBA) is designing a database that will store millions of student enrollment records. Many courses have extremely long names (e.g., 'Introduction to Relational Database Management Systems and SQL Server'), which would cause massive storage overhead if repeated in every row. What physical database design technique should the DBA use to compress course names and save storage space?
๐Ÿ’ป text Snippet
-- Redundant and wasteful design:
-- ENROLLMENT(StudentID, StudentName, CourseTitle, DateCompleted) -- repeating long course names
  1. A.Define a separate 'Course' lookup table with a short, fixed-length code as the primary key (e.g., 'CS403'), and reference this code as a foreign key in the 'Enrollment' table.
  2. B.De-normalize the table by repeating the full course name in multiple text columns in both tables to improve performance.
  3. C.Convert the table schema into First Normal Form (1NF) by splitting the course name into multiple single-character rows.
  4. D.Store all data in volatile memory cache buffers and disable physical hard disk logging completely.
Q10
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 23๐Ÿท๏ธ 23.1. Physical Record and De-normalizationMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following statements is NOT true about De-normalization?
  1. A.It is the process of attempting to optimize the performance of a database.
  2. B.De-normalization is a technique to move from lower to higher normal forms of database modeling.
  3. C.In de-normalization it is required to add redundant data.
  4. D.It enhances the overall performance of the database.