sec 2 1st term rev

15
1 Question1: The advantages of database are:- ………………………………………………………………………………………… ………………………………………………………………………………………… …………………………………………………………………………………..…… ……………………………………………………………………..................... ...........…………………………………………………… Question2: Choose the correct answer? The relationship between data & information is:- a -Data are the output of information processing. b - Information is the output of data processing. c -information is stored & data are retrieved.

Upload: -

Post on 26-May-2015

1.727 views

Category:

Education


2 download

DESCRIPTION

شيتات

TRANSCRIPT

Page 1: Sec 2  1st term rev

1

Question1:

The advantages of database are:-

…………………………………………………………………………………………

…………………………………………………………………………………………

…………………………………………………………………………………..……

…………………………………………………………………….....................

...........……………………………………………………

Question2:

Choose the correct answer?

The relationship between data & information is:-

a -Data are the output of information processing.

b - Information is the output of data processing.

c -information is stored & data are retrieved.

Page 2: Sec 2  1st term rev

2

Question3:

The following diagram is part of (Entity Relationship Diagram) of stationery, which has many

branches.

The entities and their attributes in the following table:-

Entity Attribute Key attribute

Page 3: Sec 2  1st term rev

3

Question4: Match

Data Is the place (column) where one

kind of data is stored

Information Is a group of organized data

associated with a certain topic

inside a table or tables

Table or file Network database , relational

database

Hierarchical database

record Oracle, access

field It is the output of data processing

Data base Are the primary raw materials

Relational Database Is the vessel that contains a set of

data

Types of database It is the place “row” where the

integrated data are stored

Database management

system

They are databases that store data

in form of tables. each table shares

in a statement or more

Page 4: Sec 2  1st term rev

4

Question 5 :

Illustrate with examples the types of the following relationships

between entities:-

-one to one -One to many -many to many

ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ

Page 5: Sec 2  1st term rev

5

Question 6:

Define the following symbols ?

The meaning of the symbol- symbol

Entity a R Entity b 1 1

Page 6: Sec 2  1st term rev

6

Entity a R Entity b 1

N

Entity a R Entity b M N

Entity a R Entity b

Page 7: Sec 2  1st term rev

7

Question 7: Choose the correct answer:

1. Means …….. (multi valued property – key property -

relationship)

2. ………… means a record in the first table to be associated

with a record of only one of the second table (one to one –

one to many – many to many)

3. Data is ………….. (product processing – storage place –

the primary raw material)

4. Model of entities relationship is based on dividing the

system into ……………….. (files – pages - entities)

Question 8: Complete the following statements :

(The foreign field – total participation for “a” entity in the

relationship – a compound basic key – many to many – the

derived property)

1- ………….. are the property for an entity can be inferred or

calculated from other properties or the nature of the

relationship of this entity with other entities.

2- This form is called ……………..

3- This form is called ……………..

4- ………………..is a strange field in the linked table (refers to ) a

basic key field in another table

Entity a R Entity b M N

Entity a R Entity b

Page 8: Sec 2  1st term rev

8

Question9: put (√) or (× ) with suitable sentence:

1- The entity relationship model is one of the common styles to

set an outlay for the relational database. It helps in making

tables or files for the database & the relationships among them

on correct & scientific base. ( )

2- The entity is an object that has an independent existence. It

may be of a real existence or an abstract existence. ( )

3- Each entity has attributes that describe and define it. ( )

4- The key attribute is the attribute whose value may be

recurred inside the entity consequently it distinguishes each

single entity from the others. ( )

5- Relationships among entities are defined in terms of:

One to one – One to many – Many to many ( )

6- The attribute of a relationship means the features that

describe a certain relationship they don’t describe any entity in

the relationship. ( )

7- The multi valued attribute is the attribute for an entity that

can include more than one value for a single entity. ( )

Page 9: Sec 2  1st term rev

9

Answer Answer 1:

The advantages of database:-

o Storing, classifying, organizing, &indexing data.

o The flexibility in modifying data through adding or exchanging data

with the new ones.

o It easy to create forms to make data entry easier

o It makes search & query easy to find the stored data & information in the

database.

o Displaying data & information in form of reports in which data can be

extracted, analyzed to support & make decisions.

Answer 2:

Information is the output of data processing.

Answer3: The following diagram is part of (Entity Relationship Diagram)

of stationery, which has many branches.

Page 10: Sec 2  1st term rev

10

Book

author Book title Book code

publish in

N N Number of

copies

Branch code M

address

Branch tel publisher

tel

code Publisher

Publisher name

Branch name Address

Page 11: Sec 2  1st term rev

11

Answer 4:

Data Are the primary raw materials

Information It is the output of data processing

Table or file Is the vessel that contains a set of

data

record It is the place “row” where the

integrated data are stored

field Is the place (column) where one kind

of data is stored

Data base Is a group of organized data

associated with a certain topic inside

a table or tables

Relational Database They are databases that store data in

form of tables. each table shares in a

statement or more

Types of database Network database , relational database

Entity Attribute Key attribute

Branch Tel-address-branch name Branch code

Publisher Tel-address- Publisher name Publisher code

Book Book-title-author Book code

Page 12: Sec 2  1st term rev

12

Hierarchical database

Database management

system

Oracle, access

Page 13: Sec 2  1st term rev

13

Answer 5:

One to one : Manager – Department

One to many: employee – department

Many to many : employee – project ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ

Answer6:

The meaning of the symbol- symbol

Entity

Relationship

Attribute

Key attribute

The multi-valued

attribute

Page 14: Sec 2  1st term rev

14

The meaning of the symbol- symbol

One to one

relationship

One to Many

relationship

Many to Many

relationship

Total participation

for the entity in the

relationship

Answer 7:

1- Relationship 2- one to one 3- the primary raw material

4- entities

Answer 8:

1- derived attribute 2- many to many

3-total participation for entity b

4-foreign key

Entity a R Entity b

Entity a R Entity b

Entity a R Entity b

Entity a R Entity b

Page 15: Sec 2  1st term rev

15

Answer 9:

1-(√) 2- (√)

3-(√) 4- (×)

5-(√) 6- (√)

7-(√)