Vous êtes sur la page 1sur 50

1.

An entity ORDER has the attributes Order ID,


Order Date, Product id, Customer ID. This entity
is in 1st Normal Form. True or False?
True

False (*)

2. An entity can have repeated values and still be in 1st Normal Form. Mark for
True or False?

Review
(1) Points

True

False (*)

3. When all attributes are single-valued, the database model is said to Mark for
conform to:

Review
(1) Points

1st Normal Form (*)

3rd Normal Form

4th Normal Form

2nd Normal Form

4. To convert an entity with a multi valued attribute to 1st Normal Form, Mark for
we create an additional entity and relate it to the original entity with a
1:1 relationship. True or False?
Review
(1) Points

True

False (*)

5. Where an entity has more than one attribute suitable to be the Mark for
Primary UID, these are known as _____________ UIDs.

Review
(1) Points
Simple

Composite

Secondary

Candidate (*)

6. If an entity has no attribute suitable to be a Primary UID, we can create an artificial one. True
or False?

True (*)

False

7. An entity can only have one Primary UID. True or False? Mark for

Review
(1) Points

True (*)

False

8. Which of the following would be suitable UIDs for the entity EMPLOYEE: Mark for
(Choose Two)

Review
(1) Points

(Choose all correct answers)

Social Security Number (*)

Employee ID (*)

Last Name
Address

9. To resolve a 2nd Normal Form violation, we: Mark for

Review
(1) Points

Delete the attribute that was causing the violation.

Do nothing, an entity does not need to be in 2nd Normal Form.

Move the attribute that violates 2nd Normal Form to a new entity
with a relationship to the original entity. (*)
Move the attribute that violates 2nd Normal Form to a new ERD.

10. What is the rule of Second Normal Form? Mark for

Review
(1) Points

No non-UID attributes can be dependent on any part of the UID.

Some non-UID attributes can be dependent on the entire UID.

All non-UID attributes must be dependent upon the entire UID. (*)

None of the above

11. When is an entity in 2nd Normal Form?

When all non-UID attributes are dependent upon the entire UID. (*)

When attributes with repeating or multi-values are present.

When no attritibutes are mutually independent and all are fully


dependent on the primary key.
None of the Above.

12. Examine the following Entity and decide which rule of Normal Form is being violated:

ENTITY: CLIENT
ATTRIBUTES:
# CLIENT ID
FIRST NAME
LAST NAME
STREET
CITY
ZIP CODE

1st Normal Form.

2nd Normal Form.

3rd Normal Form.

None of the above, the entity is fully normalised. (*)

13. The Rule of 3rd Normal Form states that No Non-UID attribute can be Mark for
dependent on another non-UID attribute. True or False?

Review
(1) Points

True (*)

False

14. As a database designer, you do not need to worry about where in the Mark for
datamodel you store a particular attribute; as long as you get it onto the
ERD, your job is done. True or False?
Review
(1) Points

True

False (*)

15. A transitive dependency exists when any attribute in an entity is Mark for
dependent on any other non-UID attribute in that entity.

Review
(1) Points

True (*)

False

2. Examine the Mark for Review


following
Entity and
decide (1) Points
which rule
of Normal
Form is
being
violated:

ENTITY:
CLIENT
ATTRIBUTES
:
# CLIENT
ID
FIRST
NAME
LAST
NAME
ORDER
ID
STREET
ZIP CODE

1st Normal Form. (*)

2nd Normal Form.

3rd Normal Form.

None of the above, the entity is fully normalised.

3. Examine the Mark for Review


following
Entity and
decide which (1) Points
sets of
attributes
break the 3rd
Normal Form
rule:

ENTITY:
TRAIN
ATTRIBUTES:
TRAIN ID
MAKE
DRIVER ID
DRIVER
NAME
DATE OF
MANUFACTUR
E

TRAIN ID, MAKE

DRIVER ID, DRIVER NAME (*)

MAKE, DATE OF MANUFACTURE

None of the above, the entity is already in 3rd Normal Form.


4. Examine the Mark for Review
following
Entity and
decide (1) Points
which rule
of Normal
Form is
being
violated:

ENTITY:
CLIENT
ORDER
ATTRIBUTES
:
# CLIENT
ID
# ORDER
ID
FIRST
NAME
LAST
NAME
ORDER
DATE
CITY
ZIP CODE

1st Normal Form.

2nd Normal Form. (*)

3rd Normal Form.

None of the above, the entity is fully normalised.

6. What is the Mark for


rule of Second
Normal Form?
Review
(1) Points

No non-
UID
attributes
can be
dependen
t on any
part of
the UID.
Some
non-UID
attributes
can be
dependen
t on the
entire
9. There is no UID.
limit to All non-
how many UID
columns attributes
can make must be
up an dependen
entity's t upon the
UID. True entire
or False? UID. (*)
None of
the above
True
(*)
False

Corre
ct 1.
Examine the following entity and
11. People are not Mark for Review decide which attribute breaks the
born with 2nd Normal Form rule:
'numbers', but
a lot of (1) Points
ENTITY: CLASS
systems
ATTRIBUTES:
assign student
#CLASS ID
numbers,
#TEACHER ID
customer IDs,
SUBJECT
etc. These
TEACHER NAME
are known as
a/an
______________ Mark for Review
UID.
(1) Points
Identification

Unrealistic

Structured

Artificial (*)

12. If an entity has a Mark for


SUBJECT
multi-valued
attribute, to conform
to the rule of 1st Review
Normal Form we: (1) Points

Make the
attribute
optional
CLASS ID
Create an
additional entity
and relate it to
the original
entity with a M:M
relationship.
Create an
additional entity
and relate it to
the original
entity with a 1:M
relationship. (*)
TEACHER NAME (*)

TEACHER ID

2.
Examine the following entity and decide how to make it conform to the rule of 2nd Normal Form:

ENTITY: RECEIPT
ATTRIBUTES:
#CUSTOMER ID
#STORE ID
STORE LOCATION
DATE

Mark for Review

(1) Points

Move the attribute STORE LOCATION to a new entity, STORE, with a UID of STORE LOCATION, and
create a relationship to the original entity.

Do nothing, it is already in 2nd Normal Form.

Delete the attribute STORE ID


Move the attribute STORE LOCATION to a new entity, STORE, with a UID of STORE ID, and create
a relationship to the original entity. (*)

4.
When any attribute in an entity is dependent on any other non-UID attribute in that entity, this is
known as:
Mark for Review

(1) Points

Non-dependency

Transitive dependency (*)

Functional dependency

Dependency
6.
The Rule of 3rd Normal Form states that No Non-UID attribute can be dependent on another non-UID
attribute. True or False?
Mark for Review

(1) Points

True (*)

False

9.
When data is only stored in one place in a database, the database conforms to the rules of ___________.
Mark for Review

(1) Points

Normality

Multiplication
Normalization (*)

Reduction

10.
If an entity has a multi-valued attribute, to conform to the rule of 1st Normal Form we:
Mark for Review

(1) Points

Create an additional entity and relate it to the original entity with a 1:M relationship. (*)

Create an additional entity and relate it to the original entity with a M:M relationship.

Do nothing, an entity does not have to be in 1st Normal Form


Make the attribute optional

15.
An entity could have more than one attribute that would be a suitable Primary UID. True or False?
Mark for Review

(1) Points

True (*)

False

1.
A Hierarchical relationship is a series of relationships that reflect entities organized into successive
levels. True or False?
Mark for Review

(1) Points

True (*)

False
2.
A relationship between an entity and itself is called a/an:

Recursive Relationship (*)

General Relationship

Heirarchical Relationship

Invalid Relationship
3.
A recursive relationship must be Mandatory at both ends. True or False?
Mark for Review

(1) Points

True

False (*)

4.
Business organizational charts are often modeled as a Hierarchical relationship. True or False?
Mark for Review

(1) Points
True (*)

False

5.
Cascading UIDs are a feature often found in what type of Relationship?
Mark for Review

(1) Points
Invalid Relationship

Heirarchical Relationship (*)

Recursive Relationship

General Relationship

6.
A particular problem may be solved using either a Recursive Relationship or a Hierarchical
Relationship, though not at the same time. True or False?
Mark for Review

(1) Points

True (*)

False
Correct

7.
A single relationship can be both Recursive and Hierarchical at the same time. True or False?
Mark for Review

(1) Points

True

False (*)
Correct

8.
Arcs are used to visually represent _________ between two or more relationships in an ERD.
Mark for Review

(1) Points

Differences

Inheritance

Sameness

Exclusivity (*)
9.
Which of the following would best be represented by an arc?
Mark for Review

(1) Points

STUDENT (Grade A student, Average Student)

PARENT (Girl, Bob)

DELIVERY ADDRESS (Home, Office) (*)


TEACHER (Female, Bob)

10.
To visually represent exclusivity between two or more relationships in an ERD you would most likely
use an ________.
Mark for Review

(1) Points

Arc (*)

Attribute
UID

Relationship

11.
An arc can often be modeled as Supertype and Subtypes. True or False?
Mark for Review

(1) Points

True (*)

False
12.
Arcs are Mandatory in Data modeling. All ERD's must have at least one Arc. True or False?
Mark for Review

(1) Points

True

False (*)

13.
Which of the following would best be represented by an arc?
Mark for Review

(1) Points

STUDENT ( University, Technical College) (*)

STUDENT (senior, male)

STUDENT (Grade A student, Average Student)

STUDENT (graduating, female)


14.
Which of the following can be added to a relationship?
Mark for Review

(1) Points

A composite attribute

An attribute

An arc can be assigned (*)

An optional attribute can be created


Correct

15.
Arcs model an Exclusive OR constraint. True or False?
Mark for Review

(1) Points

True (*)

False

1.
Which of the following can be added to a relationship?
Mark for Review

(1) Points
An arc can be assigned (*)

An attribute

A composite attribute

An optional attribute can be created

2.
All relationships participating in an arc must be mandatory. True or False?
Mark for Review

(1) Points
True

False (*)

3.
To visually represent exclusivity between two or more relationships in an ERD you would most likely
use an ________.
Mark for Review

(1) Points

Attribute
UID

Relationship

Arc (*)

Correct

4.
Arcs are used to visually represent _________ between two or more relationships in an ERD.
Mark for Review

(1) Points
Differences

Sameness

Inheritance

Exclusivity (*)

Correct

5.
Which of the following would best be represented by an arc?
Mark for Review

(1) Points

DELIVERY ADDRESS (Home, Office) (*)

PARENT (Girl, Bob)

TEACHER (Female, Bob)

STUDENT (Grade A student, Average Student)

Correct

6.
An arc can often be modeled as Supertype and Subtypes. True or False?
Mark for Review

(1) Points

True (*)

False

Correct

7.
Arcs model an Exclusive OR constraint. True or False?
Mark for Review

(1) Points
True (*)

False

8.
Which of the following would best be represented by an arc?
Mark for Review

(1) Points
STUDENT ( University, Technical College) (*)

STUDENT (Grade A student, Average Student)

STUDENT (senior, male)

STUDENT (graduating, female)

Correct

9.
Cascading UIDs are a feature often found in what type of Relationship?
Mark for Review

(1) Points
Invalid Relationship

Recursive Relationship

General Relationship

Heirarchical Relationship (*)

Correct
10.
A recursive relationship must be Mandatory at both ends. True or False?
Mark for Review

(1) Points

True
False (*)

A Mark for Review


11. Hierarchic
al
relationshi (1) Points
p is a
series of
relationshi
ps that
reflect
entities
organized
into
successive
levels.
True or
False?

True (*)

False

Correct

12. A single relationship can be both Recursive and Hierarchical at the Mark for
same time. True or False?

Review
(1) Points

True

False (*)
13. A relationship between an entity and itself is called a/an: Mark for

Review
(1) Points

General Relationship

Invalid Relationship

Heirarchical Relationship

Recursive Relationship (*)

14. Business organizational charts are often modeled as a Hierarchical Mark for
relationship. True or False?

Review
(1) Points

True (*)

False

Correct

15. A Recursive Relationship is represented on an ERD by a/an: Mark for

Review
(1) Points

Pig's Ear (*)

Crow's Foot

Single Toe

Dog's Tail

10. An arc can often be Mark for Review


modeled as Supertype
and Subtypes. True or
False? (1) Points

True (*)

False

1. Modelin Mark for Review


g
historic
al data (1) Points
is
optional
. True or
False?

True (*)

False

Corre
ct

2. All systems must have an entity called WEEK with a holiday attribute so Mark for
that you know when to give employees a holiday. True or False?

Review
(1) Points

True

False (*)

Corre
ct

3. Which of the following would be a logical constraint when modeling time Mark for
for a City entity?

Review
(1) Points

Cites may change their names and/or country association if the


borders of a country change. (*)
People are born in the city and people die in the city.

If you are doing a system for any French City, you would need
security clearance.
Daily traffic patterns must be monitored to determine how many
law enforcement officers are needed.

4. Conditional non-transferability refers to a relationship that may or may Mark for


not be transferable, depending on time. True or False?

Review
(1) Points

True (*)

False

Corre
ct
5. In a payroll system, it is desirable to have an entity called DAY with a Mark for
holiday attribute when you want to track special holiday dates. True or
False?
Review
(1) Points

True (*)

False

6. No formal rules Mark for Review


exist for
drawing ERD's.
The most (1) Points
important thing
is to make sure
that all entities,
attributes, and
relationships
are
documented on
the diagram,
and the
diagram is
clear and
readable. True
or False?

True (*)

False

Correct

7. You must make sure all entities of a Mark for Review


proposed system can fit onto one diagram.
It is not allowed to break up a data model
into more than one diagram. True or False? (1) Points

True

False (*)

Correct

8. Which of the following statements are true Mark for Review


for ERD's to enhance their readability.
(Choose Two)
(1) Points

(Choose all correct answers)

Avoid crossing one relationship line


with another. (*)
It is OK to break down a large ERD
into subsets of the overall picture.
By doing so, you end up with more
than one ERD that, taken together,
documents the entire system. (*)
You must ensure that you have every
single entity--even if hundreds of
them exist--on one single, big
diagram.
The crows feet (many ends) can
point whichever way is the easiest to
draw.

9. In an ERD, High Volume Entities usually Mark for Review


have very few relationships to other
entities. True or False?
(1) Points

True

False (*)

10. Which of the following is a logical Mark for Review


constraint that could result from
considering how time impacts an example
of data storage? (1) Points

An ASSIGNMENT may only refer to


an EMPLOYEE with a valid employee
record at the Start Date of the
ASSIGNMENT. (*)
Dates must be stored with Time.

End Date must be before the Start


Date.
EMPLOYEE periods can overlap
causing the database to crash.

Correct
Mark for Review

(1) Points
11. You are doing a data model Mark for
for a computer sales
company where the price
of postage depends upon Review
the day of the week that (1) Points
goods are shipped. So
shipping is more expensive
if the customer wants a
delivery to take place on a
Saturday or Sunday. What
would be the best way to
model this?
Use a Delivery Day entity, which holds prices against
week days, and ensure the we also have an attribute for
the Requested Delivery Day in the Order Entity. (*)
Email current prices to all employees whenever a price
changes.
Allow them to enter whatever delivery charge they
want.
Update the prices in the system, print out the current
prices when they change, and pin them on the company
noticeboard.

Correct

12. All systems must include functionality to provide logging or Mark for Review
journaling in conceptual data models. True or False?

(1) Points

True

False (*)

13. Which of the following scenarios should be modeled so that Mark for Review
historical data is kept? (Choose two)

(1) Points

(Choose all correct answers)

CUSTOMER and ORDERS (*)

CUSTOMER and PAYMENTS (*)

BABY and AGE

TEACHER and AGE

Correct

14. When modeling historical data the unique identifier is always Mark for Review
made up of a barred relationship from the original two
entities. True or False?
(1) Points
True

False (*)

Correct

15. Modeling historical data can produce a unique identifier that Mark for Review
includes a date. True or False?

(1) Points

True (*)

False

Correct

2. Which Mark for Review


of the
followin
g (1) Points
scenari
os
should
be
modele
d so
that
historic
al data
is kept?
(Choos
e two)

(Choose all correct answers)

LIBRARY and BOOK (*)

LIBRARY and NUMBER OF BOOKS

STUDENT and AGE

STUDENT and GRADE (*)

3. Historical data should always be kept. True or False? Mark for Review

(1) Points

True

False (*)
4. Conditional non-transferability refers to a relationship that may Mark for Review
or may not be transferable, depending on time. True or False?

(1) Points

True (*)

False

Correct
6. If you have an Mark for Review
entity with a
DATE attribute,
in addition to (1) Points
other attributes
that track date
characteristics,
you should
create a DAY
entity. True or
False?

True (*)

False

Correct
11. Which of Mark for Review
the
following
statement (1) Points
s are true
to enhance
the
readability
of ERDs?
(Choose
Two)

(Choose all correct answers)

Crossing relationship lines help the readability of the


diagram.
Crows feet (the many-ends of relationships) should
consistently point the same direction where possible,
either South & East or North & West (*)
It does not matter which way the crows feet (many
ends of a relationship) point.
Relationship lines should not cross. (*)

Correct

12. In an ERD, it is a good idea to group your entities according Mark for Review
to the expected volumes. By grouping high volume entities
together, the diagrams could become easier to read. True or
False? (1) Points
True (*)

False

Correct

13. What is the function of logging or journaling in conceptual Mark for Review
data models?

(1) Points

Represents entities as time in the data model.

Creates a fixed time for all events in a data model.

Allows you to track the history of attribute values,


relationships, and/or entire entities (*)
Gives a timestamp to all entities.

Mark for Review

(1) Points

15. When a system requires that old values for attributes are Mark for Review
kept on record, this is know as Journaling or Logging. True or
False?
(1) Points

True (*)

False

Correct
1. The "Arc Mark for Review
Implementation"
is a synonym for
what type of (1) Points
implementation
?

Subtype Implementation

Supertype and Subtype Implementation (*)

Cascade Implementation

Supertype Implementation
2. When mapping supertypes, relationships at the Mark for Review
supertype level transform as usual. Relationships at the
subtype level are implemented as foreign keys, but the
foreign key columns all become optional. True or False? (1) Points

True (*)

False

Correct

3. An "Arc Implementation" can be done just like any Mark for Review
other Relationship - you simply add the required
Foreign Keys. True or False?
(1) Points

True

False (*)

4. An Arc is transformed to the physical model by adding Mark for Review


a foeign Key for every relationship in the Arc. True or
False?
(1) Points

True (*)

False

5. Two entities A and B have an optional (A) to Mandatory Mark for Review
(B) One-to-One relationship. When they are
transformed, the Foreign Key(s) is placed on:
(1) Points

Both tables A and B get a new column and a


Foreign Key.
Nowhere, One-to-One relationships are not
transformed.
The table A

The table B (*)

6. To resolve a many to Mark for Review


many relationship in a
physical model you
create a(n) (1) Points
___________________?
Two tables with Foreign key constraints
between them
Intersection table (*)

Intersection entity

Unique key constraints

Correct

7. The Oracle Database can implement a many to Mark for Review


many relationship. You simply create two foreign
keys between the two tables. True or False?
(1) Points

True

False (*)

Correct

8. In a physical data model, a relationship is Mark for Review


represented as a combination of: (Choose Two)

(1) Points

(Choose all correct answers)

Primary Key or Unique Key (*)

Column

Foreign Key (*)

Check Constraint or Unique Key

Correct

9. Attributes become columns in a database table. Mark for Review


True or False?

(1) Points

True (*)

False

10. In a physical data model, an entity becomes a Mark for Review


_____________.
(1) Points

Column

Constraint

Attribute

Table (*)

11. In an Mark for Review


Oracle
databas
e, why (1) Points
would
1_TABLE
not
work as
a table
name?

There is no problem here. You can create a table called


1_TABLE.
The database does not understand all capital letters.

Object names must not start with a number. They must


begin with a letter. (*)
TABLE is a reserved word.

Correct

12. Column integrity refers to Mark for Review

(1) Points

Columns always containing values consistent with the


defined data format (*)
Columns always containing text data less than 255
characters
Columns always containing positive numbers

Columns always having values


13. Identify all of the incorrect statements that complete this Mark for Review
sentence: A primary key is...(Choose three)

(1) Points

(Choose all correct answers)

One or more columns in a table that uniquely identifies


each row in that table.
A set of columns in one table that uniquely identifies each
row in another table. (*)
A single column that uniquely identifies each column in a
table. (*)
Only one column that must be null. (*)

14. The explanation below is an example of which constraint Mark for Review
type?
A column must contain only values consistent with the defined
data format of the column (1) Points

Referential integrity

Column integrity (*)

Entity integrity

User-defined integrity

15. Foreign keys must be null. True or False? Mark for Review

(1) Points

True

False (*)

1. A Mark for Review


table
must
have a (1) Points
primar
y key.
True
or
False?

True

False (*)
4. Foreign keys cannot be null when Mark for Review

(1) Points

It refers to the same table

It is part of a primary key (*)

It refers to another table

It contains three or more columns

Correct

7. Which of the Mark for Review


following is a
valid reason
for considering (1) Points
a Subtype
Implementatio
n?
The common access paths for the supertypes are
different.
Business functionality, business rules, access paths,
and frequency of access are all very different
between the subtypes. (*)
Most of the relationships are at the supertype level.

The resulting table will reside in a single database


and be used by just ONE user.

8. In a physical data model, an attribute becomes a Mark for Review


_____________.

(1) Points

Column (*)

Foreign Key

Constraint

Table

9. The conceptual model is transformed into a physical Mark for Review


model. The physical implementation will be a relational
database. True or False?
(1) Points

True (*)

False

Correct
The Mark for Review
transformati
10. on from an
ER diagram (1) Points
to a physical
design
involves
changing
terminology.
Entities in
the ER
diagram
become
__________ :

Unique Keys

Columns

Foreign Keys

Tables (*)

Correct
13. A barrred Mark for Review
Relationsh
ip will
result in a (1) Points
Foreign
Key
column
that also
is part of:

The Check Constraint

The Table Name

The Primary Key (*)

The Column Name

Correct
15. Relationshi Mark for Review
ps on an
ERD can
only be (1) Points
transforme
d into UIDs
in the
physical
model?
True or
False?

True

False (*)

Vous aimerez peut-être aussi