You are on page 1of 14

Database Design Test: Mid Term Exam Semester 1

Section 10(Answer all questions in this section) 1. Generic models are generally far more complex than a specific model. True or False? True False (*) 2. Correct ll datamodels must !e transformed from specific to generic. True or False? True False (*) Correct ". There is no point in trying to group your entities together on your diagram according to #olume. $a%ing a diagram pretty is a &aste of time. True or False? True False (*) Correct '. There are formal rules for ho& to dra& ()*+s, e#en though they are only guidelines, you should al&ays try to follo& them. True or False? True (*) False Correct

Section (Answer all questions in this section) n ()* is an example of a .hysical $odel. True or False?

-. True

False (*) /ncorrect. )efer to 0ection 2 1esson 1. 2. ll of the follo&ing &ould !e instances of the entity 3/$ 1 0.(C/(0 except &hich? *og 4ird (lephant 1eaf (*) Correct

5. /n a physical data model, a relationship is represented as a?

Column )o& /nstance Foreign 6ey (*) Correct 7. 8olatile entities ha#e special re9uirements and need special attention &hen you are doing data modelling. True or False? True (*) False Correct

:. ;an <<<<<<<<< is a picture of all the information that &ill form the !asis for the finished system. ()* (*)

.rocess Ta!le ttri!ute Correct


1=. >hich of the follo&ing entities most li%ely contains #alid attri!utes? (Choose

t&o) (ntity? @ome. ttri!utes? 3um!er of 4edrooms, A&ner, ddress, *ate 4uilt (*) (ntity? .et. ttri!utes? 3ame, 4irthdate, A&ner (*)

(ntity? Car. ttri!utes? A&ner Accupation, A&ner 0alary, 0peed (ntity? $other. ttri!utes? 3ame, 4irthdate, Accupation, 0alary /ncorrect. )efer to 0ection 2 1esson 2.

11. (ntity and ttri!ute names are al&ays interchanga!le, so you need not &orry a!out choosing the right type. True or False? True False (*) Correct

Section ! (Answer all questions in this section)

12. >hich of the follo&ing scenarios should !e modeled so that historical data is %ept? (Choose t&o) 4 4B and G( CC0TA$() and . B$(3T0 (*) T( C@() and G( CC0TA$() and A)*()0 (*) Correct 1". $odeling historical data can produce a uni9ue identifier that al&ays excludes dates. True or False? True

False (*) Correct 1'. particular pro!lem may !e sol#ed using either a )ecursi#e )elationship or a @ierarchy, though not at the same time. True or False? True (*)

False Correct 1-. >hich of the follo&ing &ould !e good as a Cni9ue /dentifier for its (ntity? (Choose Three) .ersonal /dentification num!er for .erson (*)

8ehicle )egistration 3um!er for Car (*) /043 3um!er for 4oo% (*) *ate of !irth for 4a!y Correct

12. True False (*)

ll relationships participating in an arc must !e mandatory. True or False?

Correct 15. or False?


rcs are $andatory in *ata modeling. ll ()*+s must ha#e at least one rc. True

True False (*) /ncorrect. )efer to 0ection 5 1esson 1.


17. n arc can also !e modeled as 0upertype and 0u!types. True or False? True (*) False

Correct

1:. >hich of the follo&ing is 3AT a relationship type? 0ome to 3one (*) Ane to Ane Ane to $any $any to $any

Correct

2=. >hich of the follo&ing &ould !est !e represented !y an arc? T( C@() (Female, 4o!) *(1/8()B **)(00 (@ome, Affice) (*) . )(3T (Girl, 4o!) 0TC*(3T (Grade student, #erage 0tudent)

Correct

Section " (Answer all questions in this section)

21. 4usiness rules are important to data modelers. True or False? True (*) False Correct

22. >hen creating entities you must follo& these rules? (Choose T&o) 3ame them in .lural 3ame them in 0ingular (*) (xclude ttri!utes /nclude ttri!utes (*)

Correct

2". >hich of the follo&ing are suita!le (ntity names? (Choose T&o) *AG0 3/$ 1 (*) 3/$ 10 *AG (*)

/ncorrect. )efer to 0ection ' 1esson 1.


2'. Bou can only create relationships to a 0upertype, not to a 0u!type. True or False? True False (*)

Correct

2-. True False (*)

supertype can only ha#e t&o su!types and no more. True or False?

Correct

Section # (Answer all questions in this section) 22. n entity &ithout repeated #alues is said to !e on 1st 3ormal Form. True or

False? True (*) False /ncorrect. )efer to 0ection 2 1esson 2. 25. 3ormaliDing an (ntity to 1st 3ormal Form is done !y remo#ing repeated or redundant attri!utes. True or False? True (*)

False /ncorrect. )efer to 0ection 2 1esson 2.


27. True False (*)

uni9ue identifier must !e made up of more than one attri!ute. True or False?

Correct 2:. The first C/* for an entity is called the .rimary C/*, the second is called 0econdary C/* and so on. Bes, this is the &ay C/*+s are named. (*)

3o, it is not possi!le to ha#e more than one C/* for an (ntity. Bes, !ut then it stops. 3o entities can ha#e more than t&o C/*+s. 3o, each (ntity can only ha#e one C/*, the secondary one. /ncorrect. )efer to 0ection 2 1esson 1.

"=. s a data!ase designer you do not need to &orry a!out &here in the datamodel you store a particular attri!ute, as long as you get it onto the ()* your Eo! is done. True or False? True

False (*) Correct "1. >ould it !e a good idea to model age as an attri!ute of 0TC*(3T? Bes $ay!e it could stop us ha#ing to calculate someone+s age e#ery time &e need it 0ometimes 3o F it !rea%s the 3ormaliDation rules (*) /ncorrect. )efer to 0ection 2 1esson ".

"2. ny 3onFC/* must !e dependant on the entire C/*. True or False? True (*) False

Correct

Section $ (Answer all questions in this section)

"". Bou are doing a data model for a computer sales company, &here the price of postage is dependent on &hat day of the &ee% goods are shipped. 0o shipping is more expensi#e if the customer &ants a deli#ery to ta%e place on a 0aturday or 0unday. >hat &ould !e the !est &ay to model this? Cse a *eli#ery *ay entity, &hich holds prices against &ee% days, and ensure the &e also ha#e an attri!ute for the )e9uested *eli#ery *ay in the Arder (ntity. (*) (mail current price to all employees &hene#er the prices change. Cpdate the prices in the system, print out the current prices &hen they change and pin them on the company notice!oard llo& them to enter &hate#er e#er deli#ery charge they &ant. Correct "'. >hich of the follo&ing is a logical constraint that could result from considering ho& time impacts an example of data storage? n 00/G3$(3T may only refer to an ($.1AB(( &ith a #alid employee record at the 0tart *ate of the 00/G3$(3T. (*) ($.1AB(( periods can o#erlap causing the data!ase to crash.

(nd *ate must !e !efore the 0tart *ate. *ates must !e stored &ith Time. Correct "-. /f a system includes the concept of time and it stores 0tart *ates, then (nd *ates !ecomes $andatory. For each 0tart *ate attri!ute you create, you $C0T create an (nd *ate attri!ute and it must !e mandatory. True or False? True

False (*) /ncorrect. )efer to 0ection : 1esson 1.

"2. >hich of the follo&ing &ould !e a logical constraint &hen modeling time for a City entity? .eople are !orn in the city and people die in the city.

Cites may change their name and;or &hich country they are placed in, if the !orders of a country change. (*) /f you are doing a system for any French City, you &ould need security clearance. Bou need a constant record of cities !ecause they are still cities, e#en if leadership

changes o#er time, e.g. they get a ne& $ayor. /ncorrect. )efer to 0ection : 1esson 1.

"5. $odeling historical data is Aptional. True or False? True (*) False

Correct

Section % (Answer all questions in this section)

"7. >hen reading an ()* including )elationships you are said to !e spea%ing? )elationshipFish Gi!!erish ()*ish (*) (ntityFish

Correct

":. The single end of a )elationship is called? 0ingle Toe (*) 4ig Toe 0ingle Foot Cro&s Foot

Correct

'=. )elationship 3ames are optional. True or False? True False (*) /ncorrect. )efer to 0ection " 1esson 1.

'1. )elationships represents something of significance to the !usiness. True or False? True (*) False Correct '2. $atrix *iagrams sho& Aptionality and *egrees of the ()*s they document. True or False? True

False (*) /ncorrect. )efer to 0ection " 1esson '.

Section & (Answer all questions in this section)

'". >hat do you call the entity created &hen you resol#e a $?$ relationship? /ntersection entity (*) /nclusion entity )ecursi#e entity $?$ entity Correct ''. /ntersection (ntities often ha#e the relationships participating in the C/*, so the relationships are often !arred. True or False? True (*)

False /ncorrect. )efer to 0ection - 1esson ". '-. /ntersection (ntities are at the $aster end in the relationships !et&een it and the original entities. 0o the original entities are details or children of the ne&ly created intersection entity. True or False? True

False (*)

Correct '2. /f t&o entities ha#e t&o relationships !et&een them, these relationships can !e either <<<<<<<<<<<<< or <<<<<<<<<<<<< ? )edundant or )e9uired (*)

)eplicated or )e9uired )esourced and )eally Good )edundant and )eplicated Correct

'5. >hich of the follo&ing pairs of entities is most li%ely to !e modeled as a $?$ relationship? C ) and >@((1

T)(( and 4) 3C@ .()0A3 and F/3G().)/3T T( C@() and 0C4G(CT )( (*) Correct

'7. @o& do you include a relationship as part of the C/* for an entity? 4y !arring the relationship in 9uestion (*) 4y reporting it in an external document 4y including the C/* from the parent entity as an attri!ute in the entity Bou cannot model that.

/ncorrect. )efer to 0ection - 1esson 2.


':. relationship from an entity !ac% to itself is called a <<<<<<<<<<< relationship. $andatory )ecursi#e (*) $any to $any Aptional Transferra!le

Correct -=. *iamond on a relationship indicates the )elationship as 3onFTranferra!le. True or False? True (*)

False Correct

Test? $id Term (xam 0emester 1

)e#ie& your ans&ers, feed!ac%, and 9uestion scores !elo&. n asteris% (*) indicates a correct ans&er. 0emester 1 $id Term (xam co#ers 0ections 1F1= of *ata!ase *esign. 0ection 1= ( ns&er all 9uestions in this section) 1. ll datamodels must !e transformed from specific to generic. True or False?

$ar% for )e#ie& (1) .oints True False (*) Correct 2. Generic models are generally far more complex than a specific model. True or False? $ar% for )e#ie& (1) .oints True False (*) Correct ". >hich of the follo&ing statements are true for ()*+s to enhance their reada!ility. (Choose T&o) $ar% for )e#ie& (1) .oints (Choose all correct ans&ers) /s is A6 to !rea% a !ig ()* do&n into su!sets of the o#erall picture. This &ay you end up &ith more than one ()*, that together documents the entire system. (*) Try to a#oid crossing lines (*) The cro&s feet (many ends) can point &hiche#er &ay is the easiest to dra& Bou must ensure you ha#e all the entities on one single, !ig diagram, e#en if you ha#e hundreds Correct '. There is no point in trying to group your entities together on your diagram according to #olume. $a%ing a diagram pretty is a &aste of time. True or False? $ar% for )e#ie& (1) .oints True False (*)

Correct

0ection ( ns&er all 9uestions in this section) -. /ntersection (ntities are at the $aster end in the relationships !et&een it and the original entities. 0o the original entities are details or children of the ne&ly created intersection entity. True or False? $ar% for )e#ie& (1) .oints True False (*) /ncorrect. )efer to 0ection - 1esson ". 2. >hen you resol#e a $F$ you simply reFdra& the relationships !et&een the t&o original entities, no ne& entities are created. True or False? $ar% for )e#ie& (1) .oints True False (*) Correct 5. /ntersection (ntities often ha#e the relationships participating in the C/*, so the relationships are often !arred. True or False? $ar% for )e#ie& (1) .oints True (*) False Correct 7. @o& do you include a relationship as part of the C/* for an entity? $ar% for )e#ie& (1) .oints 4y !arring the relationship in 9uestion (*) 4y reporting it in an external document 4y including the C/* from the parent entity as an attri!ute in the entity Bou cannot model that.

Correct

:. /f t&o entities ha#e t&o relationships !et&een them, these relationships can !e either <<<<<<<<<<<<< or <<<<<<<<<<<<< ? $ar% for )e#ie& (1) .oints )edundant or )e9uired (*) )eplicated or )e9uired )esourced and )eally Good )edundant and )eplicated Correct 1=. )elationships can !e )edundant. True or False? $ar% for )e#ie& (1) .oints True (*) False Correct .age 1 of -