DBMS Exam Revised

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

THE EAST AFRICAN UNIVERSITY (TEAU)

SCHOOL OF COMPUTER SCIENCE AND IT


DEPARTMENT OF COMPUTER SCIENCE
JAN – APRIL 2019, MAIN EXAMINATION

COURSE : DATABASE MANAGEMENT SYSTEM


CODE : CIT 2104
TIME : 2 Hours

INSTRUCTIONS
1. The Paper is made up of FIVE (5) Questions, question ONE is compulsory plus any other
TWO questions.
2. Credit is given for legibility, clarity of expressions and use of relevant illustrations.
3. Clearly write your registration number on each answer sheet used.

DO NOT WRITE ANYWHERE ON THIS QUESTION PAPER

QUESTION ONE:
a) Differentiate between the following terms as used in database

i. Single user and multi-user database systems

ii. Centralized and distributed database systems

iii. A Tuple and an Attribute (6 marks)

b) Explain the advantages of a database system. (10 marks)

c) State 5 components of an E-R diagram. (4 marks)

d) Explain the disadvantages of the filing system. (10 marks)

QUESTION TWO
a) Explain 5 components of SQL. (10 marks)
b) Given the two tables below:
STUDENT COURSE

Code Stud.id Name Code Title

IMIS 001 Damaris IMIS Info. Systems

BIT 002 Okal BIT Bachelor of IT

BIT 003 Kahuria CIT Cert in IT

CIT 004 Mwangi DIT Dip in IT

i. Write SQL statements that will SELECT all data from both tables.
ii. Write SQL statements that will INSERT data in Student tables.
iii. Write SQL statement that will UPDATE data on a specific student from the
Student table.
iv. Write SQL statements that will DELETE specific records from both either of the
tables.
(8 marks)
c) Write an SQL SELECT statement that enforces ordering display of records.(2 marks)

QUESTION THREE
a) Explain four properties of a transaction. (8 marks)
b) Explain 3 problems presented by Interference between Concurrent transactions.
(6 marks)
a) With illustrations explain a deadly embrace deadlock. (6 marks)

QUESTION FOUR
b) Explain the steps involved in a database development lifecycle. (12 marks)
c) State and explain 4 functional components of a database system. (8 marks)

QUESTION FIVE
a) Define a relationship as used in Database systems? (2 marks)
b) By use of illustrations explain the basic types of relationships. (6 marks)
c) Explain 3 types of data models. (6 marks)
a) Explain the following forms of Normalization:

i. First Normal Form ( 1NF)


ii. Second Normal Form (2NF)

iii. Third Normal Form(3NF) (6 marks)

You might also like