Font size
WorksheetsDBMS ER Model
Total questions: 77
Worksheet time: 46mins
An entity is a
object of relation
present working model
thing in real world
model of relation
Which of the following is not a component of ER Model in DBMS?
entity
database
attribute
relationship
A relationship is
an item in an application
a meaningful dependency between entities
a collection of related entities
a related data
The expansion of ER Diagram is
Entity Relationship diagram
Entity Relative diagram
Entity Relation diagram
Entity Rationalized diagram
Entity is represented as
ellipse
double ellipse
rectangle
double rectangle
In one to many relationship, the entity that is on the one side of relationship is called
subtype
child
instance
parent
Property that describes the characteristics of entity is
entities
relationship
attributes
identifiers
Entities can be associated with one another in which of the following
attribute
identifiers
entities
relationship
By relation cardinality we mean
number of items in a relationship
number of relationships in which an entity can appear
number of items in an entity
number of entity sets which may be related to a given entity
If an entity appears in N relationship then it is
a 1:1 relationship
a 1:N relationship
a N:1 relationship
a N:M relationship
Rows of a relation is called
a relation row
an entity
a data structure
tuples
The columns of a relation
must be in specified order
may be in any order
with key field in first column
with largest width column last
Attributes are
properties of relationship
attributed to entities
properties of members of an entity set
In ER diagram relationships is represented by
circles
rectangles
ellipse
diamond shaped box
One entity may be
related to only one other entity
related to itself
related to only two other entities
related to many other entities
The function that an entity plays in a relationship is called that entity’s _____________
Participation
Position
Role
Instance
The attribute AGE is calculated from DATE_OF_BIRTH. The attribute AGE is
Single valued
Multi valued
Composite
Derived
The attribute name could be structured as an attribute consisting of first name, middle initial, and last name. This type of attribute is called
Simple attribute
Composite attribute
Multivalued attribute
Derived attribute
An entity in A is associated with at most one entity in B, and an entity in B is associated with at most one entity in A.This is called as
One-to-many
One-to-one
Many-to-many
Many-to-one
Which one of the following uniquely identifies the elements in the relation?
Secondary Key
Primary key
Foreign key
Composite key
Which of the following symbols represent relationship sets in an ER diagram
Divided rectangles
Diamonds
Lines
Undivided rectangles
What do double line represent in an ER diagram
They link entity sets to relationship sets
Total participation of an entity in a relationship set
Relationship sets linked to weak entity sets
None of the mentioned
How are roles specified in an ER diagram
By labelling the rectangles
By labelling the diamonds
Roles cannot be specified in an ER diagram
By labelling the lines
ER Modelling Technique is a
Top-down technique
Bottom-Up Technique
Left to Right
None of the above
An ________ is a set of entities of the same type that share the same properties, or attributes.
Entity set
Attribute set
Relation set
Entity model
Which of the following is incorrect regarding levels of abstraction in database?
Physical level describes how to store a record and not the relationship among the data.
Logical level describes what data to stored in database and the relationship among the data.
View level hides the details of data types
Physical level describes what data to stored in the database.
Which of the following is true about data independence?
It is the ability:
To modify schema definition in one level without affecting schema definition in the next lower level.
To modify schema definition in one level without affecting schema definition in the next higher level.
To modify the data at one level without affecting the data in the next lower level
To modify the data at one level without affecting the data in the next higher level.
3. Identify the following the correct way/s to delete all rows at a time from salary table.
DELETE * FROM salary;
TRUNCATE TABLE salary;
DELETE FROM SALARY;
TRUNCATE TABLE FROM salary;
The actual content in the database at a particular point.
Schema
Attribute
Parameter
Instance
A characteristic of an entity.
Relation
Attribute
Parameter
Constraint
ODBC Stands for
Object Database connectivity
Oral Database connectivity
Oracle Database connectivity
Open Database connectivity
The Database schema is written in
DCL
DDL
DML
TCL
In ER model Relationship is represented by
Rectangle
Ellipse
Rhombus
Triangle
An advantage of DBMS is
Data is dependent on programs
Data redundancy is increases
Data is integrated and can be accessed by multiple programs.
None of these.
The attribute name could be structured as an attribute consisting of first name, middle initial, and last name. This type of attribute is called
composite
structured
multi valued
derived
check the incorrect option
ER is an conceptual Data model
DBMS avoids Data redundancy
we cannot create a table without a primary key
An attribute of an entity can have more than one value
The attribute AGE is calculated from DATE_OF_BIRTH. The attribute AGE is
(a)
for the following two entities which one is the correct option CUTOMER/ORDER
one to one
one to many
many to one
For the following two entities which is the correct option RULER/COUNTRY
one to many
one to one
many to one
Record in a database is
can have information about a person
Known as row
group of related record
Known as column
for the following two entities which is appropriate relationship Zoo/Animal
one to one
one to many
many to one
Entity-relationship diagrams is
a tool that graphically shows the collections of entities in a system
a tool that graphically shows the connections among entities in a system
Identify the primary key from the following
name
mark
telephone number
Gender
can a primary key be null
yes
no
A recursive relationship is a relationship between an entity and ___________.
itself
a subtype entity
an archetype entity
an instance entity
Properties that describe the characteristics of entities are called:
entities
attributes
identifiers
relationships
Entities can be associated with one another in which of the following?
entities
attributes
identifiers
relationships
The function that an entity plays in a relationship is called that entity’s _________.
Participation
Position
Role
Instance
The attribute name could be structured as an attribute consisting of first name, middle name and last name. This type of attribute is called :
Simple attribute
Composite attribute
Multi-valued attribute
Derived attribute
In a relation between the entities the type and condition of the relation should be specified. That is called as ______ attribute.
Descriptive
Derived
Recursive
Relative
The relationship between a weak entity set is called as the:
Weak relationship
Identifying relationship
Connecting relationship
Associative relationship
The complement of Generalization is:
Specialization
Relation
Distribution
Normalization
The need of EER diagram arise depending upon the:
Nature of problem
Nature of entities
Preferences of the database designer
All of these
The process of minimizing the differences between entities by identifying their common characteristics is known as:
Specialization
Generalization
Multiplicity
Normalization
_______ is a bottom up process.
Specialization
Generalization
Association
Aggregation
The minimum and maximum values of connectivity is called the __________ of the relationship.
cardinality
degree
modality
tuple
The data stored in database at a particular moment of time is called ________ of database.
Instance
Schema
E-R Diagram
Relation
Based on the figure above, identify the number of tuples that will be returned by the following relational algebra query : σ Type = 'Saving' (Account)
2
3
6
0
Choose the CORRECT symbol of SELECT in the Relational Algebra
x
π
∩
σ
Choose the CORRECT symbol of SELECT in the Relational Algebra
x
π
∩
σ
Identify the CORRECT output for table (Student Difference Lecturer) or (Student - Lecturer) in table above
Write the CORRECT relational algebra expression base on the figure above
π managerID, managerName ( σ workExprience = 5) (MANAGER)
σ managerID, managerName ( π workExprience = 5) (MANAGER)
σ managerID, managerName ( π workExprience > 5) (MANAGER)
π managerID, managerName ( σ workExprience > 5) (MANAGER)
Write the relational algebra to list student's number and student'a name whose age is 20 years old or state in Terengganu.
π StudentID, Name ( σ Age=20 AND State = "Terengganu" (STUDENT)
π StudentID, Name ( σ Age=20 OR State = "Terengganu" (STUDENT)
σ StudentID, Name ( π Age=20 AND State = "Terengganu" (STUDENT)
σ StudentID, Name ( π Age=20 OR State = "Terengganu" (STUDENT)
Base on the table given, identify output that will be produced when, σ Salary > 3000 ˅ City = ‘Batu Pahat’ (WORKER).
Base on the table given, identify output that will be produced when, σ Salary > 3000 ˅ City = ‘Batu Pahat’ (WORKER).
Relational Algebra is a __________ query language that takes two relations as input and produces another relation as an output of the query.
Relational
Structural
Procedural
Fundamental
Is equivalent to
Which of the following are relational algebra operators?
Which of the following are relational algebra operators?
In the results of what Join types are NULL values possible?
Natural Join
Theta join
Left/Right Outer Join
Full Outer Join
What are some of the extensions suggested to the relational algebra language?
Generalized projection
Generalized selection
Aggregation
Union
Sorting
In relational data model, the total number of rows can be identified as ______________________ .
Cardinality
Degree
Attribute
Entity
Identify the total number of attributes in a relational data model.
Tuple
Entity
Degree
Cardinality
In relational data model, the total number of attributes can be identified as ______________________ .
Cardinality
Degree
Tuple
Entity
If related data exists in more than one table, they can be joined by using the Primary Key link to the same key in the other table. Identify this key.
Foreign Key
Primary Key
Candidate Key
Composite Key
For select operation the ________ appear in the subscript and the ___________ argument appears in the paranthesis after the sigma.
Predicates, relation
Relation, Predicates
Operation, Predicates
Relation, Operation
The ___________ operation, denoted by −, allows us to find tuples that are in one relation but are not in another.
Union
Set-difference
Difference
Intersection
