
































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

































Computer Science / Information Systems Exam Summary
C. The physical arrangement of data blocks on a hard disk D. The procedure for backing up and restoring database records RATIONALE: THE CORRECT ANSWER is B. Normalization organizes data into well-structured relations to reduce redundancy, eliminate update anomalies, and enforce data integrity through decomposition into related tables. Encryption (A) is a security technique unrelated to structural organization; physical block arrangement (C) is a storage concern handled by the DBMS; and backup/restore (D) is a recovery operation, not a design methodology.
2. Which of the following is the primary goal of normalization? A. To increase the number of tables in a database B. To eliminate data redundancy and update anomalies while preserving data integrity C. To improve the graphical user interface of a database application D. To increase the storage space consumed by the database RATIONALE: THE CORRECT ANSWER is B. Normalization aims to reduce redundant storage of the same fact, prevent insertion, update, and deletion anomalies, and maintain logical data integrity. Increasing table count (A) is a side effect, not a goal; UI improvement (C) is unrelated; and increasing storage (D) is the opposite of efficiency gains achieved by normalization.
A. Faster query performance and smaller storage B. Insertion, update, and deletion anomalies that can corrupt data integrity C. Automatic encryption of data D. Improved data consistency RATIONALE: THE CORRECT ANSWER is B. Redundant data stored in multiple places must be updated everywhere; otherwise, inconsistencies arise, producing insertion (cannot add a fact without another), update (partial update creates inconsistency), and deletion (deleting a record unintentionally loses other facts) anomalies. Faster performance (A) and smaller storage (B alternative) are not consequences of redundancy; encryption (C) is unrelated; and improved consistency (D) is the opposite of what occurs.
6. An insertion anomaly occurs when: A. Adding a new record forces the insertion of unrelated or duplicate data, or cannot be done without other data B. Deleting a record accidentally removes other facts C. Updating one fact requires updating it in multiple places D. The database engine rejects a valid SQL statement RATIONALE: THE CORRECT ANSWER is A. An insertion anomaly occurs when, due to poor design, a new fact cannot be recorded without also recording unrelated facts or creating redundant data. Deletion anomaly (B) involves losing unrelated facts when deleting a record; update anomaly (C) involves
inconsistency from partial updates; and engine rejection of valid SQL (D) is a syntax or constraint issue, not a normalization anomaly.
7. An update anomaly is best illustrated by which situation? A. A new student cannot be added without a course enrollment B. A customer's address is stored in many invoice rows, and changing it in only some rows produces inconsistent data C. Deleting an invoice row also deletes the customer's entire record D. A query returns no rows because of a wrong WHERE clause RATIONALE: THE CORRECT ANSWER is B. An update anomaly occurs when a single fact stored redundantly must be updated in multiple places, and failure to update every copy produces inconsistency. Option A describes an insertion anomaly; Option C describes a deletion anomaly; and Option D describes a query error. 8. A deletion anomaly occurs when: A. A new row cannot be inserted without a matching parent row B. Updating one copy of a fact leaves another copy stale C. Deleting a row unintentionally removes information about another, unrelated entity D. A foreign key constraint prevents deletion of a referenced row RATIONALE: THE CORRECT ANSWER is C. A deletion anomaly arises when deleting a tuple to remove one fact also erases another fact that should have been preserved, because the two
functional dependency; dependency on another non-key attribute (C) is a transitive dependency (3NF); and absence of a primary key (D) is a separate design problem.
11. A transitive dependency exists when: A. A non-key attribute depends on part of a composite key B. A non-key attribute depends on another non-key attribute (which in turn depends on the key) C. A key attribute depends on another key attribute D. Two tables share a common attribute RATIONALE: THE CORRECT ANSWER is B. A transitive dependency is a chain: if X → Y and Y → Z, and Y is not a candidate key, then Z is transitively dependent on X, violating 3NF. Dependency on part of a composite key (A) is a partial dependency; key-to-key dependency (C) is not the definition; and shared attributes (D) describe join relationships, not transitive dependencies. 12. A "determinant" in functional dependency theory is: A. The attribute that is functionally determined B. The attribute on the left side of a functional dependency that determines another attribute C. A foreign key constraint D. An index on a table RATIONALE: THE CORRECT ANSWER is B. In X → Y, X is the determinant (the determining attribute set) and Y is the determined attribute. Option A describes the dependent
attribute; foreign keys (C) are referential constraints; and indexes (D) are performance structures.
13. The process of decomposition in normalization refers to: A. Splitting a relation into smaller relations while ensuring the original data can be reconstructed through joins B. Merging multiple tables into one large table C. Deleting redundant rows permanently D. Compressing the database file RATIONALE: THE CORRECT ANSWER is A. Decomposition replaces one relation with several smaller relations that together preserve all original information; a lossless-join decomposition ensures no data is lost or spuriously created. Merging (B) is denormalization; deleting rows (C) removes data; and compression (D) is a storage operation. 14. A lossless-join decomposition guarantees that: A. The database becomes smaller in size B. The natural join of the decomposed relations reproduces exactly the original relation C. All foreign keys are removed D. No queries can be executed against the original table RATIONALE: THE CORRECT ANSWER is B. A decomposition is lossless if joining the resulting relations yields precisely the original relation's tuples—no tuples are lost and no spurious tuples are generated. Smaller size (A) is a possible benefit, not the guarantee; removing foreign keys (C) is unrelated; and
1NF (A) is identical to the correct answer; 3NF (C) and BCNF (D) are higher, stricter forms that go beyond basic table validity.
17. The primary key of a relation is: A. A minimal set of attributes that uniquely identifies each tuple B. The first column of the table C. Any column with an index D. A column containing only numeric values RATIONALE: THE CORRECT ANSWER is A. A primary key is a chosen candidate key—a minimal set of attributes whose values uniquely identify each row. The first column (B) has no special status; indexed columns (C) are not necessarily unique; and numeric type (D) is irrelevant to uniqueness. 18. A candidate key is: A. Any attribute that allows NULL values B. Any minimal set of attributes that uniquely identifies tuples and could serve as the primary key C. A foreign key that references another table D. A composite key with redundant attributes RATIONALE: THE CORRECT ANSWER is B. A candidate key is a minimal superkey; one candidate key is selected as the primary key. NULL-valued attributes (A) do not define a key; foreign keys (C) are referential constraints; and composite keys with redundant attributes (D) are not minimal and therefore not candidate keys.
19. A non-prime attribute is: A. An attribute that is part of any candidate key B. An attribute that is not part of any candidate key C. An attribute used only in a foreign key D. An attribute that must be unique RATIONALE: THE CORRECT ANSWER is B. Non-prime attributes are those not contained in any candidate key; prime attributes belong to at least one candidate key. Option A defines prime attributes; foreign key membership (C) is not the defining criterion; and uniqueness (D) is unrelated to the prime/non- prime distinction. 20. Why is it useful to identify functional dependencies before normalizing a relation? A. They reveal the determinants that guide correct decomposition into higher normal forms B. They prove the database is encrypted C. They eliminate the need for a primary key D. They automatically generate SQL queries RATIONALE: THE CORRECT ANSWER is A. Functional dependencies express the semantics of the data and determine which attributes belong together; they are the analytical basis for achieving 2NF, 3NF, and beyond. They do not relate to encryption (B), do not remove the need for keys (C), and do not generate SQL (D).
A. A single table containing all data before decomposition B. A relation containing all attributes of interest, from which normalized relations are derived by decomposition C. A database with no constraints D. A table with no primary key RATIONALE: THE CORRECT ANSWER is B. The universal relation (or universal schema) is a conceptual starting point containing all attributes; normalization decomposes it into smaller relations based on functional dependencies. Option A is a less precise phrasing of the same idea but not the formal definition; constraints (C) and missing primary keys (D) are unrelated.
24. Which of the following statements about normalization and performance is most accurate? A. Normalization always improves query performance B. Normalization generally reduces redundancy but may require more joins, potentially affecting performance; denormalization can be used selectively to balance these trade-offs C. Normalization always degrades performance D. Performance is unaffected by normalization RATIONALE: THE CORRECT ANSWER is B. Fully normalized schemas minimize redundancy but may require many joins, which can be costly for read-heavy workloads; selective denormalization is a legitimate performance-tuning technique.
Statements that normalization always improves (A) or always degrades (C) performance are too absolute; and performance (D) is clearly affected by schema design.
25. The overarching goal of Section 1 (Database Fundamentals & Normalization Concepts) is to ensure students understand: A. The relational model, functional dependencies, anomalies, and the conceptual rationale for normalization B. Only SQL syntax C. Only physical storage structures D. Only encryption techniques RATIONALE: THE CORRECT ANSWER is A. This section establishes the theoretical foundation—relations, tuples, keys, functional dependencies, anomalies, decomposition, and the goals of normalization—on which the study of 1NF, 2NF, and 3NF builds. SQL syntax (B), physical storage (C), and encryption (D) are separate topics. **Section 2: First Normal Form (1NF) (Questions 26–50)
RATIONALE: THE CORRECT ANSWER is A. The standard 1NF transformation removes repeating groups into a new relation whose primary key combines the original key with the distinguishing attribute of the repeating group. Deleting the data (B) loses information; merging rows (C) creates further violations; and indexing (D) does not eliminate the structural violation.
29. A relation with an attribute "Courses" holding values like "Math, Physics, Chemistry" in one cell is: A. In 1NF because the values are text B. Not in 1NF because the attribute is multi-valued and non- atomic C. In 2NF but not 1NF D. In 3NF RATIONALE: THE CORRECT ANSWER is B. A multi-valued attribute violates 1NF's atomicity requirement regardless of data type. Text values (A) do not satisfy 1NF if non-atomic; 2NF (C) presupposes 1NF; and 3NF (D) also presupposes 1NF and 2NF. 30. Consider the relation: Enrollment(StudentID, CourseID, StudentName). Assuming StudentID and CourseID form the primary key, and StudentName depends only on StudentID. Which normal form violation is present? A. 1NF violation because names are text B. 2NF violation because StudentName is partially dependent on part of the composite key
C. 3NF violation because StudentName depends on another non-key attribute D. No violation; the relation is in 3NF RATIONALE: THE CORRECT ANSWER is B. StudentName depends on StudentID alone, which is only part of the composite key (StudentID, CourseID), creating a partial dependency and violating 2NF. Text data (A) does not violate 1NF; StudentName depends on a key subset, not on another non-key attribute (C); and the partial dependency means the relation is not in 3NF (D).
31. Which of the following is a valid 1NF design for storing multiple order items per order? A. An Orders table with an "Items" column containing a comma- separated list B. An Orders table with Item1, Item2, Item3, Item4 columns for up to four items C. An Orders table and a separate OrderItems table linked by OrderID D. An Orders table with a JSON blob containing all items RATIONALE: THE CORRECT ANSWER is C. The correct 1NF approach decomposes the multi-valued fact into a separate relation (OrderItems) linked by the primary key, achieving atomicity. A comma-separated list (A) is non-atomic; fixed Item1–Item4 columns (B) are repeating groups; and a JSON blob (D) is also non-atomic at the attribute level, violating 1NF.
the repeated entries. Hiding columns (A) does not change the schema; merging (C) creates non-atomic values; and sorting (D) has no effect on normalization.
34. Which statement about 1NF is correct? A. 1NF eliminates repeating groups and requires atomic values in each attribute B. 1NF eliminates partial dependencies C. 1NF eliminates transitive dependencies D. 1NF requires every table to have a foreign key RATIONALE: THE CORRECT ANSWER is A. 1NF is defined by atomicity and the absence of repeating groups. Partial dependency elimination (B) is the task of 2NF; transitive dependency elimination (C) is the task of 3NF; and foreign keys (D) are not a 1NF requirement. 35. Consider a relation Customer(CustomerID, CustomerName, PhoneNumbers) where one customer may have multiple phone numbers stored in a single column as "555-1111; 555-2222". The appropriate 1NF conversion yields: A. One row per customer with the phone numbers concatenated B. Two relations: Customer(CustomerID, CustomerName) and CustomerPhone(CustomerID, PhoneNumber) C. One relation with Phone1, Phone2, Phone3 columns D. One relation with PhoneNumbers encrypted RATIONALE: THE CORRECT ANSWER is B. The multi-valued attribute is moved into a separate relation keyed by
(CustomerID, PhoneNumber), preserving atomicity. Concatenation (A) remains non-atomic; fixed Phone1–Phone columns (C) create repeating groups; and encryption (D) does not address the structural violation.
36. A relation R(A, B, C) has primary key A. Which of the following would violate 1NF? A. A tuple with B = NULL B. An attribute C containing a set of values {x, y, z} in one tuple C. An attribute B containing a numeric value D. A tuple where A is unique across the table RATIONALE: THE CORRECT ANSWER is B. A set-valued attribute violates atomicity and therefore 1NF. NULLs in non-key attributes (A) are permitted in the relational model unless constrained; numeric values (C) are atomic; and uniqueness of the primary key (D) is expected, not a violation. 37. Which of the following best describes a "repeating group" in a relation? A. Two rows with identical values B. A set of related attributes repeated within a table or multiple values of the same attribute in a record C. A column with duplicate values D. A table with more than one primary key RATIONALE: THE CORRECT ANSWER is B. A repeating group is a set of multi-valued entries or a repeating set of columns (e.g.,