Database
Database
WINNEBA
RESIT EXAMS
ICTW 242: DATABASE MANAGEMENT SYSTEM
Time: 2 HOURS
INSTRUCTIONS
• You are required to answer all multiple-choice questions in the answer booklet.
• When you are done with the paper, you will hand in your answer booklet. Once your answer
booklet has been handed in, it will not be returned to you. Ensure that you have answered all
questions and have checked your answers carefully before returning your answer booklet.
• The exam is in three (3) sections (A, B and C): You are required to answer all questions in
sections A and B and select ONE question from Section C.
• Section A is 60 Marks, Section B is 20 Marks and Section C is 20 Marks.
• In Section A, select the best answers to the question and write them in the Answer Booklet.
Be sure of your choice before you write.
• In Section B, draw the respective Entity-Relationship diagrams.
• In Section C, write the answer to any one (1) question in the answer booklet.
Index Number:
Signature: ……………………
1
INDEX NUMBER
SECTION A
SELECT THE BEST ANSWER IN THIS SECTION (60MARKS)
Answer the Following Questions in the Answer Booklet
Each question carries 1 mark
12. One of the following is not a special operator B. Frame memory model
in SQL C. Relational model
A. IN D. Hierarchical model
B. SUM 19. One of the following cannot be defined as an
C. EXISTS entity in any database management system
D. IS NULL A. Teacher
13. The SQL SELECT statement can be used with B. Bank Teller
all the following except C. Security Personnel
A. HAVING D. Box Number
B. ROLLBACK 20. One of the following will not fit this data type
C. WHERE declaration in SQL => NUMBER (5,3)
D. ORDER BY A. 11.2
14. Which SQL command ensures that a column B. 22.11
will not have duplicate values C. 322.1
A. NOT NULL D. 3.123
B. DEFAULT 21. Entity Relationship Diagram has……… basic
C. UNIQUE components
D. DEFAULT A. 4
15. The attribute in E-R diagram is normally B. 3
represented by C. 5
A. Square shape D. 6
B. Rectangular shape 22. One of the following is not a conceptual entity
C. Pyramid shape A. Order
D. Oval shape B. Transaction
16. If an entity participates more than once in a C. Customer
given relationship, it is termed….. D. Course
A. Loop 23. An entity that combines a foreign key with its
B. Repetition attribute to form the primary key is termed?
C. Cyclical A. Recurring Entity
D. Recursive B. Weak Entity
17. Minimum Cardinality is also referred to us C. Trace Entity
A. Octagonality D. Gew Entity
B. Ordinality 24. An entity instance is also called
C. Cardinality A. Attribute
D. Filenality B. Column
18. One of the following is not a Record Based C. Identifier
Logical Data Model D. Dependent
A. Network model
3
INDEX NUMBER
4
INDEX NUMBER
5
INDEX NUMBER
6
INDEX NUMBER
SECTION B
ANSWER ALL THE QUESTIONS IN THIS SECTION
Answer all the questions from this section in your Answer Booklet
(20 Marks)
Using crows foot notation with cardinalities, draw the relationship that may exist between the
following entity instances. Explain your diagram briefly: (2 marks each)
SECTION C
ANSWER ONLY ONE QUESTION IN THIS SECTION
Answer only one question from this section in your Answer Booklet
(20 Marks)
1. With two examples each, use diagrams to differentiate between the following attribute types
(10 Marks)
a. Composite attribute
b. Multivalued attribute
c. Derived attribute
7
INDEX NUMBER
d. Normalize the table below to Third Normal Form given that (ClientID, ShopID) are
composite candidate keys (10 Marks)
1T 1T Winneba
1T 3T Swedru
2T 1T Winneba
3T 2T Adenta
4T 3T Swedru
2. a. Identify all the functional dependencies in the table below (10 Marks)
E F G H
EKofi F1 LG1 H1
EKofi F2 LG1 H2
E2 F2 LG2 H2
E3 F2 LG2 H3
E3 F3 LG2 H4
b. Normalize the table below to Third Normal Form given that (Item, Color) are composite
candidate keys (10 Marks)