0% found this document useful (0 votes)
5 views

Module Titl2

Uploaded by

ethioawashmedia
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Module Titl2

Uploaded by

ethioawashmedia
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Module Title: Model Data Object

True/False Questions

1. Derived attributes are stored in the database as static values.


2. Relationships in an ER diagram are depicted as rectangles.
3. 1NF eliminates all forms of data anomalies.
4. Cardinality in a relationship defines the number of instances of one entity associated with
another.
5. A composite key is composed of multiple columns to uniquely identify a record.
6. A weak entity depends on a strong entity for its identification.
7. Partial dependency exists in tables with composite primary keys.
8. Normalization reduces data redundancy in a database.
9. An ER diagram primarily visualizes entities and their relationships.
10. Functional dependency is unrelated to database normalization

Multiple Choices

11. Which of the following represents a strong entity in an ERD?


a) Double rectangle
b) Single rectangle
c) Oval
d) Diamond
12. What is the main purpose of normalization?
a) To increase redundancy
b) To eliminate data anomalies
c) To create additional tables
d) To reduce query performance
13. Which normal form removes multi-valued dependencies?
a) 1NF
b) 2NF
c) 4NF
d) 5NF
14. What is a composite key?
a) A key consisting of two or more attributes
b) A single primary key
c) A surrogate key
d) A derived key
15. In a one-to-one relationship, how many instances of one entity relate to another?
a) One or more
b) Exactly one
c) Zero or one
d) Many
16. What is a derived attribute in an ERD?
a) An attribute derived from a relationship
b) An attribute calculated using other attributes
c) An attribute directly stored in the database
d) An attribute with multiple values
17. Which of the following is not a type of relationship cardinality?
a) One-to-one
b) One-to-many
c) Many-to-many
d) All-to-all
18. What is the primary key in a database?
a) A key to uniquely identify records
b) A key that references another table
c) A key with duplicate values
d) A key that is always auto-generated
19. A table with no partial dependencies is in which normal form?
a) 1NF
b) 2NF
c) 3NF
d) BCNF
20. In an ERD, which shape represents an attribute?
a) Rectangle
b) Diamond
c) Oval
d) Line
21. Which of the following is a type of attribute?
a) Composite
b) Derived
c) Multi-valued
d) All of the above
22. In an ERD, a weak entity is represented by:
a) Oval
b) Rectangle
c) Double rectangle
d) Diamond
23. What type of key is used to uniquely identify a row in a table?
a) Foreign key
b) Primary key
c) Composite key
d) None of the above
24. Which normal form removes transitive dependency?
a) 1NF
b) 2NF
c) 3NF
d) BCNF
25. What symbol represents a relationship in an ERD?
a) Oval
b) Diamond
c) Rectangle
d) Arrow

26. The first step in normalization is to:


a) Remove transitive dependencies
b) Ensure atomicity
c) Identify foreign keys
d) Split tables
27. A surrogate key is:
a) A natural key
b) A primary key assigned by the database
c) A foreign key
d) A composite key
28. A one-to-many relationship is represented in an ERD by:
a) A single line
b) A double line
c) A single line with a fork
d) None of the above
29. What is a transitive dependency?
a) A dependency on a part of a primary key
b) A dependency on a non-key attribute
c) A dependency between unrelated attributes
d) A direct dependency on a foreign key
30. Which of the following is not a type of relationship?
a) Unary
b) Binary
c) Quaternary
d) Ternary

31. Which of the following is a characteristic of a relational database?


a) Data stored in arrays
b) Hierarchical structure
c) Data stored in tables with relationships
d) No use of primary keys
32. What does BCNF ensure?
a) No transitive dependency exists
b) Every determinant is a candidate key
c) No composite attributes exist
d) All entities have foreign keys
33. What is a foreign key used for?
a) Defining unique constraints in a table
b) Linking records between two tables
c) Representing composite keys
d) Creating redundancy in the database
34. Which symbol in an ERD represents a multi-valued attribute?
a) Double oval
b) Single oval
c) Dashed line
d) Diamond
35. Which of the following is an example of an entity?
a) A student's GPA
b) A student's name
c) A student
d) A student's age
36. Which of the following best describes a relationship in an ERD?
a) A property of an entity
b) An action connecting two or more entities
c) A derived attribute
d) A table’s primary key
37. What is the difference between a primary key and a unique key?
a) A primary key allows duplicates, a unique key does not
b) A unique key can reference multiple columns, while a primary key cannot
c) A primary key enforces referential integrity, a unique key does not
d) A table can only have one primary key but multiple unique keys
38. Which of the following is an example of a weak entity?
a) Employee table with an employee ID as a primary key
b) Order item table requiring an order ID to identify records
c) Product table with no relationships
d) Customer table with a unique customer ID
39. Which data type is best for a field that stores monetary values?
a) Integer
b) Float
c) Decimal
d) Boolean

What is the purpose of a data dictionary in database design?


a) To store transactional data
b) To document entities and relationships
c) To automate data normalization
d) To generate SQL queries

You might also like