




































































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!





































































Question 1. Which notation uses âcrowâs footâ symbols to represent relationship cardinality? A) IDEF1X B) UML C) Information Engineering (IE) D) ERwin Answer: C Explanation: The Information Engineering (IE) methodology, often called Crowâs Foot notation, uses three-pronged symbols to denote âmanyâ in relationships. Question 2. In a conceptual data model, which of the following is typically omitted? A) Business entities B) Primary keys C) Highâlevel relationships D) Business rules Answer: B Explanation: Conceptual models focus on business concepts and relationships; they do not define technical details such as primary keys. Question 3. Which abstraction level is concerned with datatype selection, indexes, and storage parameters? A) Conceptual model B) Logical model C) Physical model D) Business model Answer: C Explanation: The physical model translates logical definitions into databaseâspecific implementations, including datatypes, indexes, and storage options. Question 4. Which naming convention uses capitalized words without separators? A) snake_case
B) kebab-case C) PascalCase D) camelCase Answer: C Explanation: PascalCase capitalizes the first letter of each word and concatenates them (e.g., CustomerOrder). Question 5. A table that cannot exist without a parent table is called a ____ entity. A) Strong B) Weak C) Independent D) Composite Answer: B Explanation: Weak entities depend on a parent (owner) entity for their existence and primary key composition. Question 6. An attribute that must always contain a value is described as: A) Nullable B) Optional C) Required D) Defaulted Answer: C Explanation: Required attributes cannot be null; they must have a value for every record. Question 7. Which key type is generated by the DBMS and has no business meaning? A) Natural key B) Candidate key C) Surrogate key D) Alternate key
Question 11. A table that references itself to represent a managerâemployee hierarchy uses a ____ relationship. A) Recursive B) Manyâtoâmany C) Oneâtoâone D) Weak Answer: A Explanation: A recursive relationship allows rows in the same table to be related to other rows in that table. Question 12. In a supertype/subtype design, which of the following is true? A) Subtype tables must contain all attributes of the supertype. B) The supertype key is never propagated to subtypes. C) Subtypes inherit the primary key of the supertype. D) Only one subtype can exist for a given supertype row. Answer: C Explanation: Subtype tables usually share the supertypeâs primary key, ensuring a oneâtoâone relationship. Question 13. Which normal form eliminates repeating groups and ensures atomic values? A) 1NF B) 2NF C) 3NF D) BCNF Answer: A Explanation: First Normal Form (1NF) requires each column to hold indivisible (atomic) values and eliminates repeating groups. Question 14. A table that contains a nonâkey attribute dependent on another nonâkey attribute violates which normal form?
Answer: C Explanation: Transitive dependencies (nonâkey â nonâkey) are disallowed in Third Normal Form. Question 15. Which form of denormalization is commonly used to improve query performance in a data warehouse? A) Adding redundant columns B) Removing primary keys C) Splitting tables into many small tables D) Enforcing strict 3NF Answer: A Explanation: Denormalization often adds redundant data (e.g., preâaggregated columns) to reduce join complexity for readâheavy workloads. Question 16. A cascading delete is configured on a foreign key to: A) Prevent deletion of parent rows B) Automatically delete related child rows C) Set child foreign keys to NULL D) Raise an error if child rows exist Answer: B Explanation: Cascading delete propagates the delete action from the parent to all dependent child rows. Question 17. In a star schema, the central table that stores measurable events is called a: A) Dimension table B) Fact table C) Bridge table
Question 21. Forward engineering in data modeling primarily produces: A) ER diagrams from source code B) DDL scripts from a visual model C) Data dictionaries from existing tables D) Business requirement documents Answer: B Explanation: Forward engineering generates database creation scripts (DDL) based on the designed model. Question 22. Reverse engineering a database results in: A) A set of stored procedures B) A physical data model only C) A visual model representing the existing schema D) Automatic data migration scripts Answer: C Explanation: Reverse engineering reads a live database and produces a diagrammatic model of its structure. Question 23. Which SQL datatype is best suited for storing monetary values with two decimal places? A) FLOAT B) INT C) DECIMAL(10,2) D) VARCHAR Answer: C Explanation: DECIMAL with scale 2 stores exact numeric values, ideal for currency. Question 24. A CHECK constraint that enforces a columnâs values to be either âMâ, âFâ, or âUâ is an example of:
A) Domain constraint B) Referential constraint C) Unique constraint D) Primary key constraint Answer: A Explanation: Domain constraints limit permissible values for a column, which is what a CHECK does. Question 25. When mapping source data to a target model, the process of aligning source fields with target attributes is called: A) Data profiling B) Data cleansing C) Data mapping D) Data archiving Answer: C Explanation: Data mapping defines how each source element corresponds to a target element during integration. Question 26. Which of the following best describes a weak entityâs primary key? A) A single surrogate column B) A composite key that includes the parentâs primary key C) An automatically generated GUID D) No primary key is required Answer: B Explanation: Weak entities use a composite key that combines their own partial key with the parentâs primary key. Question 27. In IDEF1X notation, a dashed line between two entities indicates: A) Identifying relationship B) Nonâidentifying relationship C) Manyâtoâmany relationship
Explanation: Junk dimensions store miscellaneous, often binary, attributes together. Question 31. Which normal form addresses multiâvalued dependencies? A) 1NF B) 2NF C) 3NF D) 4NF Answer: D Explanation: Fourth Normal Form (4NF) eliminates multiâvalued dependencies that can cause redundancy. Question 32. In a logical data model, which of the following is typically defined? A) Index fill factor B) Table partitions C) Attribute domains and keys D) Physical storage locations Answer: C Explanation: Logical models capture businessâlevel definitions such as attributes, domains, and keys, independent of physical storage. Question 33. Which of the following best describes a oneâtoâone (1:1) relationship? A) Each parent can have many children, but each child has only one parent. B) Both sides can have multiple related rows. C) Each row in both tables relates to at most one row in the other table. D) One side is optional, the other mandatory. Answer: C Explanation: In a 1:1 relationship, a row in Table A can be linked to at most one row in Table B, and vice versa.
Question 34. When converting a manyâtoâmany relationship to two oneâtoâmany relationships, the associative entityâs primary key is typically: A) A single surrogate key only B) The composite of the two foreign keys C) The same as the primary key of one parent table D) An autoâincrementing integer unrelated to the parents Answer: B Explanation: The associative (junction) table usually uses a composite primary key consisting of the two foreign keys. Question 35. Which of the following is an advantage of using snake_case for column names? A) Compatibility with Java class naming conventions B) Easier readability in SQL statements without quoting C) Enforces caseâsensitivity on all platforms D) Guarantees uniqueness across schemas Answer: B Explanation: Snake_case (e.g., order_total) avoids the need for quoting identifiers that contain capitals in many DBMSs. Question 36. In a dimensional model, a âroleâplayingâ dimension is used when: A) The same dimension serves multiple fact tables with different contexts. B) A dimension contains only surrogate keys. C) The dimension is slowly changing. D) The dimension stores aggregated data. Answer: A Explanation: Roleâplaying dimensions, like a Date dimension used for OrderDate, ShipDate, etc., are reused in different roles. Question 37. Which constraint ensures that a columnâs values are unique across the entire table, but allows NULLs?
D) Cascade the delete to grandâchild tables. Answer: C Explanation: RESTRICT blocks the parent delete operation when related child rows exist. Question 41. In a normalized logical model, which of the following is true about repeating groups? A) They are stored as arrays. B) They are removed by moving them to a separate table. C) They are represented with a JSON column. D) They are allowed in 2NF. Answer: B Explanation: Normalization eliminates repeating groups by creating a related table, ensuring atomicity. Question 42. Which of the following best describes a âcomposite attributeâ in an ER diagram? A) An attribute that can be derived from other attributes. B) An attribute that consists of multiple subâattributes. C) An attribute that is a foreign key. D) An attribute that serves as a primary key. Answer: B Explanation: Composite attributes are made up of smaller, simpler attributes (e.g., Address â Street, City, Zip). Question 43. In a physical model, which of the following is NOT typically specified? A) Index type (Bâtree, hash) B) Column default values C) Business process flow D) Storage engine (e.g., InnoDB) Answer: C Explanation: Business process flow belongs to higherâlevel analysis, not the physical data model.
Question 44. Which of the following is a characteristic of a âfull outer joinâ in SQL? A) Returns only rows with matching keys in both tables. B) Returns rows from the left table only. C) Returns rows from the right table only. D) Returns all rows from both tables, matching where possible and padding with NULLs otherwise. Answer: D Explanation: A full outer join includes every row from both sides, using NULLs for nonâmatching columns. Question 45. A âroleâplayingâ dimension is often implemented by: A) Creating multiple physical tables with identical structures. B) Using a single dimension table and aliasing it in queries. C) Adding a surrogate key for each role. D) Merging all roles into one massive fact table. Answer: B Explanation: The same dimension table can be referenced multiple times in a star schema, each with a different role name. Question 46. Which of the following is true about a manyâtoâone relationship? A) It is the same as a oneâtoâmany relationship, just viewed from the opposite side. B) It requires a junction table. C) It cannot be expressed in relational databases. D) It always uses a composite primary key. Answer: A Explanation: A manyâtoâone relationship from Table A to Table B is equivalent to a oneâtoâmany from Table B to Table A. Question 47. In IDEF1X, a solid line with a âcrowâs footâ at the child end indicates: A) Optional relationship
D) Replace a fact table. Answer: B Explanation: Junk dimensions consolidate multiple miscellaneous attributes (often Boolean) into a single dimension. Question 51. Which of the following is a primary purpose of data profiling before modeling? A) Generating DDL scripts automatically. B) Identifying data quality issues such as null rates and value distributions. C) Creating a star schema layout. D) Defining primary keys for all tables. Answer: B Explanation: Data profiling examines source data to uncover quality problems, guiding modeling decisions. Question 52. In a logical model, an attribute with a domain of ââYâ, âNââ is best implemented as: A) CHAR(1) with a CHECK constraint B) BOOLEAN data type (if supported) C) VARCHAR(5) without constraints D) INTEGER with default 0 Answer: A Explanation: CHAR(1) with a CHECK constraint (CHECK (col IN ('Y','N'))) explicitly enforces the allowed values. Question 53. Which of the following statements about âpartial dependencyâ is correct? A) It occurs when a nonâkey attribute depends on part of a composite primary key. B) It occurs when a nonâkey attribute depends on another nonâkey attribute. C) It is allowed in 2NF but not in 3NF. D) It is the same as a transitive dependency. Answer: A
Explanation: Partial dependencies violate 2NF because the attribute depends only on a subset of a composite key. Question 54. When a fact table contains a measure that is only additive across time but not across products, it is classified as: A) Additive B) Semiâadditive C) Nonâadditive D) Derived Answer: B Explanation: Semiâadditive measures can be summed over some dimensions (e.g., time) but not others (e.g., product). Question 55. Which of the following is a reason to choose a surrogate key over a natural key? A) To make the key meaningful to end users. B) To avoid key changes when business attributes are updated. C) To reduce storage space compared to integer keys. D) To enforce referential integrity automatically. Answer: B Explanation: Surrogate keys remain stable even if the business attribute (natural key) changes, simplifying maintenance. Question 56. In a physical model, which index type is most appropriate for columns used in equality searches and joins? A) Bitmap index B) Bâtree index C) Fullâtext index D) Spatial index Answer: B Explanation: Bâtree indexes are optimized for equality and range queries, making them ideal for join columns.
A) Recursive selfâreferencing foreign key B) Manyâtoâmany junction table C) Composite primary key on level columns D) Separate tables for each level Answer: A Explanation: A selfâreferencing foreign key enables each row to point to its parent, representing hierarchical relationships. Question 61. Which of the following is true about a âcandidate keyâ? A) It must be the primary key. B) It can be used as a foreign key in other tables. C) It can contain null values. D) It is never unique. Answer: B Explanation: Any candidate key is unique and can serve as a primary key or be referenced as a foreign key. Question 62. In a normalized logical model, which form eliminates multiâvalued attributes? A) 1NF B) 2NF C) 3NF D) 4NF Answer: D Explanation: Fourth Normal Form removes multiâvalued dependencies, ensuring that no attribute set repeats independently. Question 63. Which of the following best describes a âroleâplayingâ dimensionâs implementation in a star schema? A) Multiple physical tables with identical structures. B) One physical table referenced multiple times with different foreign keys.
C) A view that unions several dimension tables. D) A dimension that contains both keys and measures. Answer: B Explanation: The same dimension table can be joined to a fact table multiple times, each join representing a different role. Question 64. Which SQL clause would you use to prevent duplicate rows from being returned in a query? A) GROUP BY B) DISTINCT C) HAVING D) ORDER BY Answer: B Explanation: DISTINCT removes duplicate result rows. Question 65. In a dimensional model, which type of slowly changing dimension tracks changes by adding new rows and preserving previous rows? A) Type 0 B) Type 1 C) Type 2 D) Type 3 Answer: C Explanation: Type 2 SCD creates a new row for each change, preserving historical data. Question 66. Which of the following is a primary benefit of using a surrogate key in a bridge table? A) It makes the bridge table readable for end users. B) It reduces the number of foreign key columns needed. C) It allows the bridge table to have its own attributes without affecting the relationship. D) It eliminates the need for primary keys.