Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
5 views

CSC 122

This document is an examination paper for the University of Embu's 2020/2021 academic year, specifically for first-year students pursuing a Bachelor of Science degree. It includes five main questions covering topics such as database systems, SQL statements, entity-relationship diagrams, and issues in multi-user environments. Students are required to answer Question One and any two additional questions from the paper.

Uploaded by

joemwirichia831
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

CSC 122

This document is an examination paper for the University of Embu's 2020/2021 academic year, specifically for first-year students pursuing a Bachelor of Science degree. It includes five main questions covering topics such as database systems, SQL statements, entity-relationship diagrams, and issues in multi-user environments. Students are required to answer Question One and any two additional questions from the paper.

Uploaded by

joemwirichia831
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

UNIVERSITY OF EMBU

2020/2021 ACADEMIC YEAR

SECOND SEMESTER EXAMINATION

FIRST YEAR EXAMINATION FOR THE DEGREE OF BACHELOR OF SCIENCE,


BACHELOR OF SCIENCE (COMPUTER SCIENCE)
CSC 122: DATABASE SYSTEMS
MAIN EXAM

DATE: TIME:
INSTRUCTIONS:
Answer Question ONE and ANY other two Questions

QUESTION ONE (30 MARKS)


a) Compare the following
i. Composite attribute and multivalued attribute. (2 marks)
ii. Foreign key and primary key (2 marks)
b) Discuss the naming conventions use in ER model diagrams. (5 marks)
c) Write the important characteristics of relational data models. (5 marks)
d) Discuss entity integrity and referential integrity. Why is each important? (5 marks)
e) Explain any five factors to consider when designing a user interface for a database
management system. (5 marks)
f) Explain the four ACID properties of transactions. (4 marks).
g) State two similarities between a hierarchical and network database models(2 marks)

QUESTION TWO (20 Marks)


a) Write SQL statement to perform each of the following

Knowledge Transforms Page 1 of 3


i. Delete all loans with loan numbers between 1300 and 1400 from a deposit table.
(2
marks)
ii. Increase all balances by 5% in a deposit table. (2 marks)
iii. Display empname,department where salary is greater than 50,000 from the
deposit table. (4 marks)
b) Explain three categories of anomalies that may be experienced when working with tables
that are not normalized (6 marks).
c) Outline three wildcard characters used in structured query language. (6 marks)

QUESTION THREE (20 MARKS)


a) Briefly explain three limitations of the file based approach that are resolved by the

database approach. (6 marks)

b) Explain three reasons for using online databases. (6 marks)

c) Explain two characteristics for a well-designed databases. (2 marks)

d) What mappings have to be made between the three levels of the ANSI / SPARC

architecture and what is achieved by each? (6 marks)

QUESTION FOUR (20 MARKS)


a) Design an E/R diagram describing the following domain: (10 marks)
 A Person has attributes pid (key) and name.
 A Skier is a type of Person with attribute aptitude.
 A Snowboarder is a type of Skier.
 A PairOfSkis has attribute sid (key) and model.
 A Snowboard has attribute sid (key) and model.
 A Skier owns zero or more PairOfSkis. The ownership relation has a purchase
price. A PairOfSkis is owned by at most one Skier.
 A Snowboarder owns zero or more Snowboards. The ownership relation has a
purchase price. A Snowboard is owned by at most one Snowboarder.
 A Person can rent a PairOfSkis or a Snowboard. A person cannot rent more than
one PairOfSkis or one Snowboard at the same time. A person cannot rent a
PairOfSkis and a Snowboard at the same time either. A piece of equipment can be
rented by at most one person at a time. The rental comes with a start date and an
end date.

Knowledge Transforms Page 2 of 3


b) Explain how domains in a relational model can be viewed as corresponding
(implementing) objects in an OO model. (10 marks)
QUESTION FIVE (20 MARKS)

a) A company has several departments. Each department has a supervisor and at least one

employee. Employees must be assigned to at least one, but possibly more departments. At

least one employee is assigned to a project, but an employee may be on vacation and not

assigned to any projects. The important data fields are the names of the departments,

projects, supervisors and employees, as well as the supervisor and employee number and a

unique project number.

i. Identify the entities (2

marks)

ii. Identify the attributes (3 marks)

iii. Draw a fully attributed ER-diagram (5 marks)

b) Explain the types of problems that can occur in a multi user environment when concurrent

access to the database is allowed. (5 marks)

c) ABC cooperative society wishes to implement a mutli-user, client/server database

architecture to serve customers spread across the country. Using examples discuss database

components requirements that will meet the organization’s objectives. (5

marks)

Knowledge Transforms Page 3 of 3

You might also like