Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Database Design Learner

Total questions: 67

Worksheet time: 1hrs 6mins

Name
Class
Date
1.

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

a)

True

b)

False

2.

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

a)

Reduction

b)

Normalization

c)

Multiplication

d)

Normality

3.

Normalizing an Entity to 1st Normal Form is done by removing any attributes that contain muliple values. True or False?

a)

True

b)

False

4.

An attribute can have multiple values and still be in 1st Normal Form. True or False?

a)

True

b)

False

5.

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

a)

True

b)

False

6.

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

ENTITY: CLIENT

ATTRIBUTES:

# CLIENT ID

FIRST NAME

LAST NAME

ORDER ID

STREET

a)

1st Normal Form

b)

2nd Normal Form

c)

3rd Normal Form

d)

None of the above, the entity is fully normalised.

7.

Examine the following Entity and decide which sets of attributes break the 3rd Normal Form rule:


ENTITY: TRAIN

ATTRIBUTES:

TRAIN ID

MAKE

DRIVER ID

DRIVER NAME

DATE OF MANUFACTURE

a)

TRAIN ID, MAKE

b)

DRIVER ID, DRIVER NAME

c)

MAKE, DATE OF MANUFACTURE

d)

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

8.

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

a)

True

b)

False

9.

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

a)

True

b)

False

10.

People are not born with 'numbers', but a lot of systems assign student numbers, customer IDs, etc. ᅠThese are known as a/an ______________ UID.

a)

Unrealistic

b)

Structured

c)

Identification

d)

Artificial

11.

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

a)

Address

b)

Employee ID

c)

Last Name

d)

Social Security Number

12.

The candidate UID that is chosen to identify an entity is called the Primary UID; other candidate UIDs are called Secondary UIDs.

a)

No, each Entity can only have one UID, the secondary one.

b)

Yes, this is the way UID's are named.

c)

No, it is not possible to have more than one UID for an Entity.

d)

No, after UIDs are first sorted, the first one is called the Primary UID, the second is the Secondary UID, etc.

13.

Examine the following entity and decide which attribute breaks the 2nd Normal Form rule:


ENTITY: CLASS

ATTRIBUTES:

#CLASS ID

#TEACHER ID

SUBJECT

TEACHER NAME

a)

CLASS ID

b)

SUBJECT

c)

TEACHER ID

d)

TEACHER NAME

14.

To resolve a 2nd Normal Form violation, we:

a)

Delete the attribute that was causing the violation.

b)

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

c)

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

d)

Move the attribute that violates 2nd Normal Form to a new ERD.

15.

Any Non-UID attribute must be dependent upon the entire UID. True or False?

a)

True

b)

False

16.

When is an entity in 2nd Normal Form?

a)

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

b)

When attributes with repeating or multi-values are present.

c)

When no attributes are mutually independent and all are fully dependent on the primary key.

d)

None of the Above.

17.

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

a)

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

b)

Delete the attribute STORE ID

c)

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

d)

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

18.

A unique identifier can only be made up of one attribute. True or False?

a)

True

b)

False

19.

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

a)

True

b)

False

20.

A candidate UID that is not chosen to be the Primary UID is called:

a)

Artificial

b)

Composite

c)

Simple

d)

Secondary

21.

A UID can be made up from the following:

(Choose Two)

a)

Relationships

b)

Synonyms

c)

Attributes

d)

Entities

22.

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

a)

4th Normal Form

b)

3rd Normal Form

c)

1st Normal Form

d)

2nd Normal Form

23.

An attribute can have multiple values and still be in 1st Normal Form. True or False?

a)

True

b)

False

24.

When data is stored in more than one place in a database, the database violates the rules of ___________.

a)

Normalization

b)

Decency

c)

Normalcy

d)

Replication

25.

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


ENTITY: CLIENT ORDER

ATTRIBUTES:

# CLIENT ID

# ORDER ID

FIRST NAME

LAST NAME

ORDER DATE

CITY

a)

1st Normal Form

b)

2nd Normal Form

c)

3rd Normal Form

d)

None of the above, the entity is fully normalised.

26.

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

a)

1st Normal Form

b)

2nd Normal Form

c)

3rd Normal Form

d)

None of the above, the entity is fully normalised.

27.

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

a)

True

b)

False

28.

What is the rule of Second Normal Form?

a)

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

b)

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

c)

All non-UID attributes must be dependent upon the entire UID

d)

None of the above

29.

To resolve a 2nd Normal Form violation, we:

a)

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

b)

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

c)

Delete the attribute that was causing the violation.

d)

Move the attribute that violates 2nd Normal Form to a new ERD.

30.

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

a)

True

b)

False

31.

There is no limit to how many attributes can make up an entity's UID. True or False?

a)

True

b)

False

32.

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

a)

Make the attribute optional

b)

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

c)

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

d)

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

33.

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

a)

Secondary

b)

Composite

c)

Candidate

d)

Simple

34.

Examine the following entity and decide which attribute breaks the 2nd Normal Form rule:


ENTITY: RECEIPT

ATTRIBUTES:

#CUSTOMER ID

#STORE ID

STORE LOCATION

DATE

a)

STORE ID

b)

CUSTOMER ID

c)

STORE LOCATION

d)

DATE

35.

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

a)

Relationship

b)

Attribute

c)

UID

d)

Arc

36.

Arcs model an Exclusive OR constraint. True or False?

a)

True

b)

False

37.

Every business has restrictions on which attribute values and which relationships are allowed. These are known as:

a)

Entities

b)

Relationships

c)

Attributes

d)

Constraints

38.

An arc can often be modeled as Supertype and Subtypes. True or False?

a)

True

b)

False

39.

Which of the following can be added to a relationship?

a)

An optional attribute can be created

b)

An attribute

c)

An arc can be assigned

d)

A composite attribute

40.

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

a)

Inheritance

b)

Exclusivity

c)

Sameness

d)

Differences

41.

Which of the following would best be represented by an arc?

a)

STUDENT(University, Technical College)

b)

STUDENT(Grade A Student, Average Student)

c)

STUDENT(senior, male)

d)

STUDENT(graduating, female)

42.

All relationships participating in an arc must be mandatory. True or False?

a)

True

b)

False

43.

A recursive relationship must be Mandatory at both ends. True or False?

a)

True

b)

False

44.

A Recursive Relationship is represented on an ERD by a/an:

a)

Single Toe

b)

Pig's Ear

c)

Crow's Foot

d)

Dog's Tail

45.

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

a)

True

b)

False

46.

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

a)

True

b)

False

47.

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

a)

Invalid Relationship

b)

Recursive Relationship

c)

General Relationship

d)

Hierarchical Relationship

48.

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

a)

True

b)

False

49.

Cascading UIDs are a feature often found in what type of Relationship?

a)

Recursive Relationship

b)

General Relationship

c)

Invalid Relationship

d)

Hierarchical Relationship

50.

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

a)

True

b)

False

51.

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

a)

True

b)

False

52.

Which of the following would best be represented by an arc?

a)

DELIVERY ADDRESS(Home, Office)

b)

STUDENT(Grade A Student, Average Student)

c)

PARENT(Girl, Bob)

d)

TEACHER(Female, Bob)

53.

Conditional non-transferability refers to a relationship that may or may not be transferable, depending on time. True or False?

a)

True

b)

False

54.

In a payroll system, it is desirable to have an entity called DAY with a holiday attribute when you want to track special holiday dates. True or False?

a)

True

b)

False

55.

When a relationship may or may not be transferable, depending on time, this is know as a/an:

a)

Arc

b)

Transferable Relationship

c)

Non-transferable Relationship

d)

Conditional Non-transferable Relationship

56.

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

a)

True

b)

False

57.

How do you know when to use the different types of time in your design?

a)

The rules are fixed and should be followed.

b)

You would first determine the existence of the concept of time and map it against the Greenwich Mean Time.

c)

Always model time; you can take it out later if it is not needed.

d)

It depends on the functional needs of the system.

58.

Why would you want to model a time component when designing a system that lets people buy bars of gold?

a)

The price of gold fluctuates and, to determine the current price, you need to know the time of purchase.

b)

You would not want to model this; it is not important.

c)

The Government of your country might want to be notified of this transaction.

d)

Sales people must determine where the gold is coming from.

59.

You are doing a data model for a computer sales company where the price of postage depends upon the day of the week that 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?

a)

Allow them to enter whatever delivery charge they want.

b)

Update the prices in the system, print out the current prices when they change, and pin them on the company noticeboard.

c)

Email current prices to all employees whenever a price changes.

d)

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.

60.

You are doing a data model for a computer sales company where the price fluctuates on a regular basis. If you want to allow the company to modify the price and keep track of the changes, what is the best way to model this?

a)

A. Create a product entity and a related price entity with start and end dates, and then let the users enter the new price whenever required.

b)

B. Create a new item and a new price every day.

c)

C. Use a price entity with a start and end date.

d)

D. Allow them to delete the item and enter a new one.

e)

E. Both A and C.

61.

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

a)

True

b)

False

62.

Which of the following scenarios should be modeled so that historical data is kept? (Choose two)

a)

CUSTOMER and PAYMENTS

b)

CUSTOMER and ORDERS

c)

TEACHER and AGE

d)

BABY and AGE

63.

Which of the following scenarios should be modeled so that historical data is kept? (Choose two)

a)

LIBRARY and BOOK

b)

STUDENT and AGE

c)

LIBRARY and NUMBER OF BOOKS

d)

STUDENT and GRADE

64.

No formal rules exist for drawing ERD's. The most 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?

a)

True

b)

False

65.

Which of the following statements are true for ERD's to enhance their readability. (Choose Two)

a)

The crows feet (many ends) can point whichever way is the easiest to draw.

b)

Avoid crossing one relationship line with another.

c)

You must ensure that you have every single entity--even if hundreds of them exist--on one single, big diagram.

d)

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.

66.

There is no point in trying to group your entities together on your diagram according to volume, and making a diagram look nice is a waste of time. True or False?

a)

True

b)

False

67.

In an ERD, High Volume Entities usually have very few relationships to other entities. True or False?

a)

True

b)

False