Q: 1 In ER Model, which of the following relationship is correct for a condition that a person in INDIA has an Aadhaar Card?
One to one relationship
One to many relationship
Many to many relationship
Many to one relationship
[ Option A ]
In India, each person has only one Aadhaar Card, and each Aadhaar number belongs to only one person.
This is a One-to-One (1:1) relationship in the ER Model.
Q: 2 Which of the following is suitable for a derived attribute?
Age
Year of services
Both (a) and (b)
None of the above
[ Option C ]
A derived attribute is an attribute whose value can be calculated from other stored attributes.
Q: 3 Which of the following is an example of a composite attribute?
Address
Age
City
State
[ Option A ]
A composite attribute is an attribute that can be divided into smaller sub-attributes.
Address can be broken into House No, Street, City, State, and PIN Code, so it is a composite attribute.
Age, City and State are the simple attributes and cannot be meaningfully divided further.
Q: 4 Which of the following is a bottom-up approach?
Specialization
Generalization
Categorization
None of the above
[ Option B ]
Generalization is a bottom-up approach where lower-level entities are combined to form a higher-level, more general entity.
Specialization is a top-down approach, where a higher-level entity is divided into lower-level entities.
Q: 5 The E-R (Entity-Relationship) modeling technique follows which approach?
Top-down approach
Bottom-up approach
Left-right approach
None of the above
[ Option A ]
E-R modeling is primarily a Top-Down approach to database design. It starts with identifying high-level entities and relationships in the real world and then gradually breaks them down into attributes and detailed structures.
Q: 6 In ER Model constructs, which type of attribute is most suitable to represent the skill(s) of an employee for an organization?
Derived Attribute
Composite Attribute
Atomic Attribute
Multivalued Attribute
[ Option D ]
In an ER (Entity–Relationship) Model, an attribute is a property or characteristic of an entity. It tells us something about the entity. Attributes describe the entity with the help of values.
For example, for entity Employee the Name, Age, Salary, Skills and for entity Student the Roll No, Course, Address are attributes.
| Attribute Type | Description | Example |
|---|---|---|
| Simple or Atomic Attribute | This type of attribute cannot be divided into smaller meaningful parts. It contains a single, indivisible value that represents one property of the entity. | Age of an employee or salary of an employee. |
| Composite Attribute | This type of attribute can be broken down into smaller sub-parts, and each sub-part represents a more detailed level of information. It is useful when an attribute naturally consists of multiple components. | An address can be divided into street, city, and state. Similarly, the name can be divided into first_name, middle_name, and last_name. |
| Derived Attribute | This type of attribute does not store its value permanently. Instead, its value can be calculated from other attributes whenever needed. It is not physically saved in the database but can be obtained through computation. | Age can be calculated from date of birth. |
| Multivalued Attribute | This type of attribute can hold more than one value for the same entity. It is used when the number of possible values is not fixed, meaning an entity may have zero, one, or many such values. | An employee can have multiple skills or multiple phone numbers. |
| Key Attribute | This attribute uniquely identifies each record in an entity set. No two entities share the same value for a key attribute. | Roll number for a student or employee ID for an employee. |
| Single-Valued Attribute | This attribute holds only one value at a time for an entity. It cannot contain multiple values simultaneously. | A person's gender or a student's blood group. |
Because an employee can have multiple skills, and ER models represent such attributes as Multivalued Attributes.
Q: 7 Which of the following is an example of a composite attribute?
Name
Age
City
State
[ Option A ]
A composite attribute is an attribute that can be divided into smaller sub-attributes.
The attribute Name can be broken into First Name, Middle Name, and Last Name, so it is a composite attribute.
Age, City and State are simple attribute and cannot be meaningfully divided further.
Q: 8 In context of ER diagram, the relationship set connecting the weak entity set to the identifying strong entity set is depicted by a ___________ and double lines are used to connect weak entity set to the relationship to indicate ___________ of weak entity set.
double diamond, total participation
dashed diamond, primary key
dashed rectangle, cardinality ratio
double rectangle, discriminator
[ Option A ]
In an ER diagram, a Weak Entity Set cannot be uniquely identified by its own attributes and relies on a Strong (Identifying) Entity Set for uniqueness. The relationship that connects a weak entity to its identifying strong entity is known as the identifying relationship. This relationship is depicted using a Double Diamond symbol.
Since every weak entity must be associated with a strong entity, there is Total Participation, which is represented by Double Lines connecting the weak entity set to the identifying relationship.
Q: 9 In an E-R diagram, a rectangle represent:
Relationship among entity set
Attribute
Entity set
Link between attribute and entity set
[ Option C ]
In an E–R diagram, different shapes are used to represent different components:
OTHER NOTATION:
| SHAPE | USED FOR | DESCRIPTION |
|---|---|---|
| Rectangle | Entity Set. | A real-world object. |
| Double Rectangle | Weak Entity Set. | An entity that depends on another entity. |
| Diamond | Relationship. | Relationship between entity sets. |
| Double Diamond | Identifying Relationship. | Relationship of a weak entity. |
| Oval | Attribute. | Property of an entity. |
| Double Oval | Multivalued Attribute. | Attribute having multiple values. |
| Dashed Oval | Derived Attribute. | Attribute derived from another attribute. |
| Underlined Oval | Key Attribute. | Uniquely identifies an entity. |
| Line | Connector. | Connects entities, attributes, relationships. |
Q: 10 An ER Model describes which type of schema?
Internal Schema
External Schema
Conceptual Schema
Physical Schema
[ Option C ]
An ER (Entity-Relationship) Model is used to visually represent the structure of a database.
This type of representation corresponds to the Conceptual Schema of a database.
Q: 11 In an E-R diagram, a double ellipse represents:
Attribute
Derived Attribute
Multivalued Attribute
Relation
[ Option C ]
In an E–R diagram, a double ellipse or double oval is used to represent a multivalued attribute, which means an attribute that can have more than one value for a single entity. For example, a person can have multiple phone numbers, so Phone_Number is shown using a double ellipse.
Q: 12 An entity is represented by a set of –
Attributes
Relationship
Model
None
[ Option A ]
An entity in a database or data modeling context is a real-world object or concept that can be uniquely identified and about which data can be stored.
Entities are represented by a set of attributes, which describe the characteristics or properties of that entity. For example, a Student entity may have attributes like Rollno, Name, Class, Age, and Address. These attributes provide information about the entity and are used to uniquely distinguish one entity instance from another.
Q: 13 The association among several entities in an E-R model is called a:
Attribute
Relation
Relationship
Entity set
[ Option C ]
In an Entity-Relationship (E-R) model, a relationship represents an association among two or more entities. It shows how entities are connected to each other.
Q: 14 The total participation of an entity in a relationship is represented by:
Double Rectangle
Double Ellipse
Double Line
Dashed Line
[ Option C ]
In an Entity-Relationship (ER) Diagram, Total Participation means that every entity in an entity set must participate in a given relationship.
To represent this, we use a Double Line between the entity set and the relationship set. This indicates that the participation of the entity is mandatory or required or total.
Thank you so much for taking the time to read my Computer Science MCQs section carefully. Your support and interest mean a lot, and I truly appreciate you being part of this journey. Stay connected for more insights and updates! If you'd like to explore more tutorials and insights, check out my YouTube channel.
Don’t forget to subscribe and stay connected for future updates.