QA Chapter3
QA Chapter3
QA Chapter3
Multiple-Choice Questions:
1) _______ is an object modeling methodology.
a) EML b) UML c) OML d) DML
3) During the ______ design phase of database design, the properties of data is given importance,
rather than its storage details.
a) conceptual b) logical c) physical d) actual
8) When the value of an attribute A is obtained from the value of an attribute B, then the attribute
A is called _______.
a) composite b) stored c) derived d) retrieved
11) ________ attribute values are used to identify each entity uniquely.
a) complex b) unique c) characters d) key
12) An entity type without a key attribute is called _______ entity type.
a) null b) weak c) strong d) single
13) ________ specifies the set of values that can be assigned to the attribute.
a) block b) relation c) structure d) domain
17) _______ specifies the maximum number of relationship instances that an entity can participate.
a) range b) domain c) cardinality d) ceiling
20) A weak entity type always has a ______ participation constraint with respect to its identifying
relationships.
a) partial b) total c) overlap d) disjoint
TRUE or FALSE:
1. The ER model is high-level conceptual model. (T/F)
2. The class diagrams in UML specify the operations on objects also. (T/F)
3. In database design the conceptual design phase comes after logical design phase. (T/F)
4. Composite attributes cannot be further subdivided. (T/F)
5. A multivalued attribute can have lower and upper bounds. (T/F)
6. An attribute value can be derived from another attribute. (T/F)
7. The names on entity types and entity sets are different. (T/F)
8. An entity cannot have more than one key attribute. (T/F)
9. A relationship type of degree two is called as ternary relationship. (T/F)
10. Relationship types can also have attributes. (T/F)
11. The attribute of a relationship type can be added to participating entity types. (T/F)
12. A weak entity type can have more than one identifying entity type. (T/F)
13. The number of levels of weak entity types cannot be more than one. (T/F)
Symbol Meaning
7
MULTIVALUED ATTRIBUTE
1.
8
DERIVED ATTRIBUTE
2.
4
IDENTIFYING RELATIONSHIP
3.
1
ENTITY
4.
5
ATTRIBUTE
5.
2
WEAK ENTITY
6.
3
RELATIONSHIP
7.
6
KEY ATTRIBUTE
8.
10
PARTIAL KEY
9.
9
COMPOSITE ATTRIBUTE
10.
Identify the cardinality ratios and participation constraints of the following
binary relationships:
Answer the following questions based on the ER diagram for COMPANY database:
Answer the following questions based on the ER diagram for COMPANY database:
Answer the following questions based on the ER diagram for AIRPLANE database shown below:
Answer the following questions based on the ER diagram for BANK database shown below:
Design an attribute to hold this information using the notations ( ) for composite attributes and
{ } for multivalued attributes as well as show how it can be represented in ER diagram.
Consider the following set of requirements for a university database that is used to keep track of
students transcripts.
The university keeps track of each students name, student number, National ID number,
current address and phone, permanent address and phone, birthdate, gender, class (I year, II
year), major department, minor department, and degree program (B.Sc., B.A.,,Ph.D.).
The name of the student should have first, middle, and last names. The permanent address
should have apartment number, street number, city, state, postal code. Both National ID
number and student number must be unique for each student.
Each department must be described by a name, department code, office number, office
phone, and college. Both name and code must be unique for each department.
Each course has a course name, description, course number, number of credit hours, level
number, and offering department. The course number should be unique for each
department.
Each section has an instructor name, semester, year, course number and section number.
The section number must be unique and each course can have multiple sections taught
during same semester/year.
A grade report has a student number, student name, section number, letter grade, and
numeric grade (percentage marks).
Design an ER schema for this application and draw an ER diagram for that schema. Specify key
attributes for each entity type, and structural constraints on each relationship type.