0% found this document useful (0 votes)
21 views

Database

The document is instructions for a database management systems exam at the University of Education, Winneba. It outlines that the exam has 3 sections (A, B, C) totaling 100 marks. Section A is multiple choice worth 60 marks. Section B involves drawing ER diagrams worth 20 marks. Section C involves answering one question in written form worth 20 marks. Students are instructed to answer all questions, check their work, and hand in their answer booklet once completed.

Uploaded by

Gideon Busia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Database

The document is instructions for a database management systems exam at the University of Education, Winneba. It outlines that the exam has 3 sections (A, B, C) totaling 100 marks. Section A is multiple choice worth 60 marks. Section B involves drawing ER diagrams worth 20 marks. Section C involves answering one question in written form worth 20 marks. Students are instructed to answer all questions, check their work, and hand in their answer booklet once completed.

Uploaded by

Gideon Busia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

UNIVERSITY OF EDUCATION

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

1. Which SQL CREATE command helps in C. KD is non-prime


efficient searching of columns D. KD is prime
A. Index 7. Which DML command helps to permanently
B. Decimal save data changes
C. Table A. UPDATE
D. Database B. INSERT
2. JOIN SQL command is also referred to as: C. ROLLBACK
A. LEFT JOIN D. COMMIT
B. FULL JOIN 8. In DBMS, the SQL procedure that initiates an
C. INNER JOIN action is called:
D. RIGHT JOIN A. TRACER
3. How many types of data independence exist B. SAVE
in DBMS C. ALTER
A. Three D. TRIGGERS
B. Four 9. Which year in SQL history was XQuery and
C. One XML standard introduced
D. Two A. 2000s
4. At what level in data abstraction exist data B. 1980s
encapsulation C. 1970s
A. Physical D. 1950s
B. Logical 10. The most important schema in data
C. View abstraction is the:
D. Data Model A. Logical
5. Transitive dependencies is normally B. Physical
removed during the C. View
A. 1NF D. Model
B. 3NF 11. One of the following is not an aggregate
C. 2NF function
D. BCNF A. MIN
6. Given the relation R (K, M, D). If KD are B. COUNT
composite keys, then C. SUB
A. M is prime D. MAX
B. M is the factor
2
INDEX NUMBER

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

25. What is the degree of relationship between a D. 5


book and a publisher entity. 32. Which SQL command is used to fetch data
A. 4 from a database table?
B. 3 A. UPDATE
C. 1 B. SELECT
D. 2 C. RETRIEVE
26. How many forms of data anomalies exist D. RESOLVE
A. 5 33. The SQL WHERE clause is normally used
B. 4 with the
C. 2 A. INSERT statement
D. 3 B. UPDATE statement
27. The UPDATE command in SQL is a/an C. RETRIEVE statement
A. DDL D. RESOLVE statement
B. DQL 34. In creating a database for a Bank, one of the
C. DML following cannot be part of the Entities
D. DNB A. Bank Customers
28. One of the following character types will B. Bank Transactions
leave unused spaces C. Bank Address
A. VARCHAR D. Bank Employees
B. CHAR 35. In creating a database for a manufacturing
C. VARCHAR2 company, one of the following cannot be an
D. BIGINT Attribute
29. The ALTER TABLE command changes A. Age
A. Schema B. Name
B. Entity C. Kofi
C. Attribute D. Telephone
D. Values 36. In data abstraction, files and indexes are
30. A CHECK constraint of (Num > =12) will located in the……. schema
given a correct value of A. View
A. 11 B. Physical
B. 9 C. Logical
C. 3 D. Field
D. 13 37. Object-oriented database systems started in
31. The INSERT INTO statement has…… basic the
syntaxes A. 1980s
A. 4 B. 1970s
B. 3 C. 1990s
C. 2 D. 2000s

4
INDEX NUMBER

38. In crows foot notation, from one to many A. Value


implies B. Dependent
A. One-Optional C. Determinant
B. Many-Optional D. Instance
C. Many-Mandatory 45. Given a relation TT (Zo, Alba, Tar, Mab). If
D. One-Mandatory the non-prime attributes are Zo and Tar, then
39. A Governor and a State in an ERD will have the composite keys are
a …………. relationship A. Zo and Tar
A. Many-to-Many B. Mab and Tar
B. One-to-Many C. Mab and Alba
C. One-to-One D. Tar and Zero
D. Many-to-One 46. The EXISTS function under special operators
40. An Employee as a Manager is a ……… is used to
relationship A. Limit values to unique values
A. Binary B. Check whether an attribute is
B. Ternary empty
C. Unary C. Restore data to their original values
D. Tedly D. Check whether a subquery returns
41. How many times can an Entity appear in an any rows
ER diagram 47. Primarily, how many JOIN commands do we
A. Two have in SQL
B. Uncountable A. FOUR
C. One B. TWO
D. Five C. FIVE
42. A candidate key as a super key has no D. THREE
A. Similar attribute 48. One of the following database applications is
B. Cosine attribute most relevant to online retailing.
C. Redundant attribute A. Salary estimation
D. Merging attribute B. Travel reservation
43. How many column combinations from the C. Order tracking and reservation
possible answers stated will give you the best D. Students registration and grading
composite candidate key selection 49. Terabyte storage in data abstraction falls
A. Two under
B. One A. View schema
C. Three B. Physical schema
D. Four C. Logical schema
44. Attributes on the Left Hand Side of a D. Drive schema
functional dependency is termed…..

5
INDEX NUMBER

50. The degree of a relationship in E-R diagram is B. 1993


relevant to C. 1994
A. The least significant entity D. 2000
B. The most significant entity 56. SQL Smallint data type ranges from
C. The number of entities A. -32,768 to 32,767
D. The number of attributes B. -31,484 to 31,483
51. The fundamental rule in naming entities is to C. -31,969 to 31,968
use a/an D. -31,838 to 31,837
A. Generic noun 57. Aside table level constraints, constraints in
B. Singular noun DBMS can also be set for
C. Plural noun A. Entity
D. Instant noun B. Column
52. One of the following is not a professional way C. Vector
to select the name of an attribute in E-R D. Relation
diagrams 58. The emergence of automated database
A. System-independent administration started in
B. Easily understandable A. 1990s
C. Unique B. 1970s
D. Match the entity name C. 1980s
53. The foreign key in DBMS is also termed D. 2000s
the…….. key 59. In an E-R diagram, the respective relationship
A. referencing between a member of parliament and his
B. default constituency is
C. extended A. One to Many
D. join B. Many to Many
54. The following categories of data integrity C. One to One
exist with each RDBMS except D. One to Three
A. Entity integrity 60. Which SQL command modifies an attributes
B. Reserve integrity values in one or more tables rows
C. Domain integrity A. ROLLBACK
D. User-defined integrity B. UPDATE
55. MySQL was developed in ……….. by C. SELECT
Michael Widenius and David Axmark D. INSERT
A. 1995

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)

1. Book and Publisher


2. Sales Order and Product
3. Student and Course
4. Lecturer and Course
5. Customer and Sale Order
6. Certificate and Programmer
7. Bank Account and Customer
8. Doctor and Patient
9. Room and Building
10. Hostel and Student

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)

ClientID ShopID Purchase Location

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)

Price Tax Color Item


25 1.2 green, yellow HP
25 1.2 green, orange DELL
25 1.2 green, yellow HP
12 0.8 yellow, red TOSHIBA

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy