Download View/Open - Pan Africa Christian University

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Global serializability wikipedia , lookup

Microsoft SQL Server wikipedia , lookup

Commitment ordering wikipedia , lookup

Relational algebra wikipedia , lookup

Serializability wikipedia , lookup

IMDb wikipedia , lookup

Oracle Database wikipedia , lookup

Microsoft Access wikipedia , lookup

Extensible Storage Engine wikipedia , lookup

Open Database Connectivity wikipedia , lookup

Entity–attribute–value model wikipedia , lookup

Functional Database Model wikipedia , lookup

Ingres (database) wikipedia , lookup

Database wikipedia , lookup

Microsoft Jet Database Engine wikipedia , lookup

Concurrency control wikipedia , lookup

Clusterpoint wikipedia , lookup

Relational model wikipedia , lookup

Database model wikipedia , lookup

ContactPoint wikipedia , lookup

Transcript
PAN AFRICA CHRISTIAN UNIVERSITY
BACHELOR OF BUSINESS INFORMATION TECHNOLOGY
END OF TERM EXAMINATION
DEPARTMENT:
COMPUTING &INFORMATION TECHNOLOGY
COURSE CODE:
BIT106
CAMPUS:
ROYSAMBU
COURSE TITLE:
DATABASE SYSTEMS
EXAM DATE:
FRIDAY, 9TH DECEMBER 2016
TIME:
14:00-17:00HRS
INSTRUCTIONS

This exam script has TWO (2) sections.

Read all questions carefully before attempting.

Answer All questions in Section A and any other Four questions in Section B.

Write onlyyour student number on the answer booklet provided.

None programmable calculator permitted

Calculators on phones, tablets and computers are NOT permitted in Theory Papers
© Copyright 2016 All Rights Reserved PAC University
PAN AFRICA CHRISTIAN UNIVERSITY
EXAMINATIONS PAPER
SECTION A
(Answer ALL questions in this section)
Question 1:
I.Define the following terms
(3 marks)
a. Primary key
b. Attribute
c. Domain integrity
II.State four advantages of using database management system (DBMS) in file
organization and management
(2 marks)
III.Using examples, describe three types of anomalies that are eliminated through
normalization process in database modeling
(3 marks)
IV.Explain two security measures you can put in place to control access to a database
(2 marks)
V.Describe the following types of relationship cardinalities used in database modeling
(4 marks)
a. One-to-one relationship
b. One-to-many relationship
VI.KleanIT Solutions Limited has employed intends to automate order processing of
computer items requested by their clients. Each of the client order can request
for several items, while an item in high demand can be requested in many order:
a. Draw an entity relationship diagram that would be used to create a
database that stores information about client’s orders
(3 marks)
b. Provide a logical schema that would be used to implement the database
using Microsoft Access or MySQL.
(3 marks)
SECTION B
(Answer any FOUR (4) questions in this section)
Question 2:
I.
State three functions of databases system management system (DBMS)
(3 marks)
II.
Using examples, differentiate between entity integrity and referential integrity
(2 marks)
III.
Using illustrations, distinguish between hierarchical model and relational models
as used in database systems
(4 marks)
IV. Outline the procedure you would follow to create an associative table in case of
many-to-many relationship while ensuring all non-key attributes wholly depend
on the primary key
(3 marks)
2 of 6 | P a g e s
©PAC UNIVERSITY2016
PAN AFRICA CHRISTIAN UNIVERSITY
EXAMINATIONS PAPER
V.
Kute Kitchen Ltd. deals with sales of electrical appliances and catteries. The
company allows their clients to place orders on their items physically or over the
e-mail. Trading division manually records order details such as order date, item
ordered and quantity. Kitchen Pridewould wish to create a database system so
that clients select items, make their orders and payments online.
a. Create an entity relationship diagram to represent conceptual model of
the above database system
(4 marks)
b. Create a database schema for the database system showing the key and
foreign attributes in each relation
(4 marks)
Question 3:
I.
Identify three examples database management systems (DMBS) (3 marks)
II.
Explain three advantages of enforcing access control in database systems
(2 marks)
III.
PAC University has employed a workforce of 100 contact or casual terms.
Assuming the University intends to create a table named Employee in a
database called Staff, study the following attributes and answer questions that
follow:
Field
Data type
PayrollID
Text
Firstname
Surname
Date of Birth
Gender
Basic Salary
IV.
Currency
a. Identify the key attribute the data types of the four fields left blank
(2 marks)
b. Outline the procedure you would follow to create the table in Access
(3 marks)
Using illustrations, explain five types of database models.
(10 marks)
Question 4:
I.
Define the following terms as used in database systems
a. Logical model
b. Composite key
3 of 6 | P a g e s
(3 marks)
©PAC UNIVERSITY2016
PAN AFRICA CHRISTIAN UNIVERSITY
EXAMINATIONS PAPER
II.
III.
IV.
V.
VI.
c. Foreign key
Explain four roles performed by Database Administrator (DBA) in PAC University
(4 marks)
Identify three factors to be considered in design of relational database systems
(3 marks)
Explain three mechanisms you would use to enforce database security
(3 marks)
Explain why web-based and mobile database access has become a popular mode
of access to business services
(4 marks)
Some attributes must always contain a value they cannot have a NULL value.
Explain how to enforce this type of constraint on a non-key attribute in Access or
MySQL
(3 marks)
Question 5:
I.
Differentiate between the following terms:
(4 marks)
a. Field and Attribute
b. Multivalued and attribute
II.
Outline the procedure you would follow to create a query from two or more
related tables in Microsoft Access
(3 marks)
III.
Kenya Africa Bank intends to develop a database to be used to store transaction
details of her clients. Assuming the basic database comprises of at least two
tables, the customer details table and the withdrawal table that holds transaction
details. Using this information, perform the following tasks:
a. Identify the most appropriate key attribute for each table
(3 marks)
b. Outline the procedure you would follow to create a relationship between
the two tables
(5marks)
c. Write a data dictionary that would be used to implement the database
tables in Access or MySQL.
(5marks)
Question 6:
I.
State the importance of each of the following Access database features
(6 marks)
a. Table
b. Form
c. Query
II.
Brookshire Distributors Ltd intends to keep a record of its customers, their orders
and products into a database.
(4 marks)
a. Draw an entity-relationship diagram that can be used to implement a
relational database that keeps track of products ordered by each customer
III.
Identity key attributes and foreign keys in each entity
(4 marks)
4 of 6 | P a g e s
©PAC UNIVERSITY2016
PAN AFRICA CHRISTIAN UNIVERSITY
EXAMINATIONS PAPER
IV.
Using
examples,
the
you would
to hire
normalize
the
Two sample
records outline
taken from
theprocedure
cards deck shows
that twofollow
clients an
one or more
properties. shown below to 3rd normal form (3NF)
worksheet
(6 marks)
ClientID
CR76
cName
John
Njue
PropertyNo
PG4
PhysiaAddr
Tom Mboya
Nairobi
Rentstart
1-Jul-03
RentEnd
3-Aug-04
Rent
350
OwnNo
C040
oName
Tina
Mwendwa
Ronald Ngala
Nairobi
1-Sep-04
1-sep-05
450
C093
Tony
Koech
PG4
Tom Mboya
Nairobi
1-sep-02
1-sep-02
350
C040
Tina
Mwendwa
PG36
Thika Rd,
Nairobi
10-oct-03
10-Oct-03
375
C093
Tony
Koech
PG16
Ronald Ngala
Nairobi
1-Nov-05
1-No-05
450
C093
Tony
Koech
PG16
CR56
Alice
Moraa
Question 7:
I.
Define the term normalization
(1 mark)
II.
Differentiate between single-valued and multi-valued attribute
(2 marks)
rd
III.
Explain the process of normalizing the table shown below into 3 Normal form
(6 marks)
IV.
Below is a sample card issued to students during registration. Normalize the card
to 3rd normal form
Student Name ……………….. Reg. Number…..
Programme Name………………………………….
Course Unit 1……………… Score……………..
Course Unit 2…………… Score……………..
a. Identity the number of entities that would be used to hold the above
information
(6 marks)
b. Using entity relationship diagram, design the conceptual model of the
database
(5 marks)
5 of 6 | P a g e s
©PAC UNIVERSITY2016
PAN AFRICA CHRISTIAN UNIVERSITY
EXAMINATIONS PAPER
EOF
6 of 6 | P a g e s
©PAC UNIVERSITY2016