All MCQ- DBMS
All MCQ- DBMS
UNIT-II
1. What does the term entity represent in the Entity-Relationship (ER) model?
A) A specific attribute in the database
B) A real-world object or concept
C) A table in a relational database
D) A set of relationships
Answer: B
2. What is an entity set in an ER model?
A) A collection of related tables
B) A collection of similar entities
C) A relationship between two entities
D) A set of attributes
Answer: B
3. What is an attribute in an ER model?
A) A relationship between entities
B) A property or characteristic of an entity
C) A unique identifier for a record
D) A collection of entities
Answer: B
4. Which of the following is an example of a composite attribute?
A) Name (First Name, Last Name)
B) Date of Birth
C) Employee ID
D) Age
Answer: A
5. What is a key attribute?
A) An attribute that forms part of a relationship
B) An attribute that can be derived from other attributes
C) An attribute that uniquely identifies an entity
D) An attribute that takes multiple values
Answer: C
6. Which of the following is an example of a simple attribute?
A) Name (First Name, Last Name)
B) Phone Number
C) Address (Street, City, Zip)
D) Full Name
Answer: B
7. In an ER diagram, how is a weak entity represented?
A) By a double rectangle
B) By a diamond
C) By a dashed line
D) By a circle
Answer: A
8. What is the role of a relationship in the ER model?
A) To store data in tables
B) To define associations between entities
C) To manage database constraints
D) To serve as a key
Answer: B
9. Which of the following is an example of a derived attribute?
A) Age, derived from Date of Birth
B) First Name
C) Social Security Number
D) Phone Number
Answer: A
10. What is a primary key in an ER model?
A) A key that can be NULL
B) A unique attribute or set of attributes that uniquely identifies an entity
C) A key that does not participate in relationships
D) An attribute that is a foreign key
Answer: B
11. In an ER diagram, how is a relationship represented?
A) A rectangle
B) A diamond
C) An oval
D) A double rectangle
Answer: B
12. What is the purpose of a foreign key?
A) To uniquely identify records within a table
B) To define relationships between two entities
C) To perform complex queries
D) To store duplicate values
Answer: B
13. In an ER diagram, how is an attribute typically represented?
A) By a diamond
B) By a rectangle
C) By an oval
D) By a triangle
Answer: C
14. Which of the following is a multi-valued attribute?
A) Social Security Number
B) Phone Number(s)
C) Age
D) Date of Birth
Answer: B
15. What is the purpose of ER diagrams in database design?
A) To perform SQL queries
B) To visualize entities, attributes, and relationships in the database
C) To optimize the database for performance
D) To enforce data integrity
Answer: B
16. Which of the following best describes a weak entity?
A) An entity that has no attributes
B) An entity that cannot exist without being related to another entity
C) An entity that has a unique identifier
D) An entity that stores derived data
Answer: B
17. What type of key is used to uniquely identify a weak entity?
A) Foreign key
B) Partial key (Discriminator)
C) Primary key
D) Candidate key
Answer: B
18. Which of the following is a binary relationship?
A) A relationship involving two entities
B) A relationship involving one entity
C) A relationship involving more than two entities
D) A relationship that is reflexive
Answer: A
19. How is a composite key represented in the ER model?
A) By a single attribute that is unique
B) By a combination of two or more attributes that uniquely identify an entity
C) By a foreign key in a relationship
D) By a derived attribute
Answer: B
20. What is a role in a relationship in an ER diagram?
A) The part played by an entity in a relationship
B) A collection of attributes
C) The constraints applied to the relationship
D) A composite key used to join tables
Answer: A
21. Which of the following is a ternary relationship?
A) A relationship involving one entity
B) A relationship involving three entities
C) A relationship involving two entities
D) A self-referencing relationship
Answer: B
22. What is the degree of a relationship in an ER diagram?
A) The number of attributes involved in the relationship
B) The number of participating entities in the relationship
C) The number of unique keys in the relationship
D) The number of tuples in the relationship
Answer: B
23. Which of the following is an example of a one-to-one relationship?
A) An employee belongs to one department, and one department has many employees
B) A person has one passport, and one passport belongs to one person
C) A student has multiple subjects, and a subject has multiple students
D) A company has multiple branches, and a branch has multiple employees
Answer: B
24. Which of the following is a many-to-many relationship?
A) A student enrolls in multiple courses, and a course has multiple students
B) An employee manages one department
C) A project is assigned to one employee
D) A company has only one manager
Answer: A
25. What is a cardinality constraint in an ER diagram?
A) A constraint that defines the number of entities that participate in a relationship
B) A rule that limits the number of relationships
C) A type of key constraint
D) A technique for optimizing performance
Answer: A
26. Which of the following is a key constraint in an ER model?
A) Ensuring that each entity has a unique identifier
B) Defining the number of entities involved in a relationship
C) Specifying the types of data in each attribute
D) Creating indexes for faster search
Answer: A
27. In an ER diagram, how is a multi-valued attribute represented?
A) A dashed oval
B) A double oval
C) A rectangle
D) A triangle
Answer: B
28. What is a composite key?
A) A single unique attribute
B) A combination of two or more attributes that uniquely identify an entity
C) An attribute that can be NULL
D) An attribute used to join tables
Answer: B
29. What is the difference between a strong entity and a weak entity?
A) A strong entity has a primary key, while a weak entity does not
B) A strong entity can exist independently, while a weak entity depends on another entity
C) A strong entity participates in relationships, while a weak entity does not
D) A strong entity has composite attributes, while a weak entity does not
Answer: B
30. In an ER diagram, how are relationships between weak entities and strong
entities represented?
A) By a single rectangle
B) By a dashed diamond
C) By a double diamond
D) By an oval
Answer: C
31. In database design, what is the main purpose of using normalization?
A) To eliminate data redundancy and improve data integrity
B) To increase the speed of queries
C) To create indexes for faster retrieval
D) To perform complex joins
Answer: A
32. What is a one-to-many relationship?
A) One entity in set A is associated with only one entity in set B
B) One entity in set A is associated with multiple entities in set B
C) Multiple entities in set A are associated with multiple entities in set B
D) One entity in set B is associated with one entity in set A
Answer: B
33. Which of the following is an ER diagram naming convention?
A) Using capital letters for attribute names
B) Naming attributes based on their data types
C) Using meaningful names that reflect real-world concepts
D) Using symbols instead of text to name entities
Answer: C
34. What is a partial participation constraint?
A) Some instances of an entity are involved in the relationship
B) All instances of an entity are involved in the relationship
C) The relationship involves multiple entities
D) The relationship is between two attributes
Answer: A
35. Which of the following is an example of total participation in a relationship?
A) Every employee in a company must work in at least one department
B) Every student must take one course
C) Some customers in a company have multiple accounts
D) A department must have at least one manager
Answer: A
36. Which of the following is NOT an issue in ER diagram design?
A) Identifying entities and relationships
B) Choosing appropriate names for attributes and entities
C) Determining cardinality constraints
D) Implementing SQL queries
Answer: D
37. What is a recursive relationship in an ER model?
A) A relationship where an entity is related to itself
B) A relationship that occurs multiple times
C) A relationship involving more than two entities
D) A relationship between two weak entities
Answer: A
38. What is the purpose of a structural constraint in an ER model?
A) To specify the number of entities participating in a relationship
B) To control the data types of attributes
C) To manage relationships between weak entities
D) To define key constraints
Answer: A
39. Which of the following is a design issue in an ER model?
A) Choosing between weak and strong entities
B) Designing the physical storage of data
C) Implementing indexes for faster searches
D) Creating backup systems for the database
Answer: A
40. In the ER model, what is a specialization?
A) A top-down approach where an entity is divided into sub-entities
B) A relationship between a strong and weak entity
C) A composite key for a weak entity
D) A constraint that ensures data integrity
Answer: A
41. What is the main purpose of generalization in the ER model?
A) To consolidate sub-entities into a higher-level entity
B) To divide an entity into specialized sub-entities
C) To ensure data integrity
D) To define relationships between attributes
Answer: A
42. What is a superkey in an ER model?
A) A single attribute that uniquely identifies each entity
B) A set of attributes that can uniquely identify each entity
C) An attribute that can have multiple values
D) A key that has a foreign key reference
Answer: B
43. What does entity integrity ensure in an ER model?
A) That each entity has a unique primary key
B) That all foreign keys reference valid primary keys
C) That attributes are normalized
D) That data is not redundant
Answer: A
44. What is a disjoint constraint in an ER model?
A) An entity can only participate in one subclass of a generalization
B) An entity can participate in multiple subclasses of a generalization
C) An entity cannot participate in a relationship
D) An entity can have multiple primary keys
Answer: A
45. In the ER model, what is the purpose of aggregation?
A) To represent a relationship involving multiple entities and relationships
B) To create indexes for faster retrieval
C) To join multiple entities into one
D) To define multi-valued attributes
Answer: A
46. What is the primary difference between a weak entity and a strong entity?
A) Weak entities depend on a strong entity for identification
B) Strong entities have no attributes
C) Weak entities have primary keys, while strong entities do not
D) Strong entities participate in relationships, while weak entities do not
Answer: A
47. What is a relationship type in the ER model?
A) A classification of relationships based on the number of participating entities
B) A key constraint that defines relationships
C) A relationship between composite attributes
D) A set of attributes used in joins
Answer: A
48. What is a candidate key?
A) A key that can serve as a primary key but is not chosen as the primary key
B) A key that is used to join tables
C) A key that is derived from other attributes
D) A key that is only used for relationships
Answer: A
49. What is a total participation constraint in an ER diagram?
A) Every instance of an entity must participate in at least one relationship
B) Some instances of an entity participate in a relationship
C) A relationship between two weak entities
D) A constraint applied only to foreign keys
Answer: A
50. In an ER model, what is generalization?
A) A bottom-up approach where multiple entities are combined into a higher-level entity
B) A top-down approach where an entity is divided into sub-entities
C) A method for enforcing key constraints
D) A rule for ensuring data security
Answer: A
Unit-III
Unit-V