0% found this document useful (0 votes)
61 views10 pages

Dbs 600 Final Database Systems

Uploaded by

huong996275
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)
61 views10 pages

Dbs 600 Final Database Systems

Uploaded by

huong996275
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/ 10

lOMoARcPSD|23491079

DBS 600( Final) - database systems

Information systems (Rhodes University)

Scan to open on Studocu

Studocu is not sponsored or endorsed by any college or university


Downloaded by Tr?n Quân 27. ([email protected])
lOMoARcPSD|23491079

RICHFIELD GRADUATE INSTITUTE OF TECHNOLOGY (PTY) LTD


HIGHER EDUCATION AND TRAINING
FACULTY OF INFORMATION TECHNOLOGY
DATABASE SYSTEMS 600

1ST SEMESTER NATIONAL FINAL EXAMINATION


DURATION: 2 HOURS MARKS: 100 DATE: 12 JULY 2019
EXAMINER: KUDAKWASHE MLAMBO MODERATOR: ZAMA SIMELANE
This paper consists of 5 questions and 9 pages including this page.

PLEASE NOTE THE FOLLOWING:


1. Ensure that you are writing the correct Examination paper, and that there are no missing pages.
2. You are obliged to enter your student details on the answer sheet. The answer sheet provided are
the property of Richfield Graduate Institute of Technology (Pty) Ltd and all extra sheets must be
handed to the invigilator before you leave the examination room.
3. If you are found copying or if there are any documents / study material in your possession, or writing
on parts of your body, tissue, pencil case, desk etc. your answer sheet will be taken away from you
and endorsed accordingly. Appropriate disciplinary measures will be taken against you for violating
the code of conduct of Richfield Graduate Institute of Technology (Pty) Ltd Examinations Board.
Therefore, if any of these materials are in your possession you are requested to hand these over to
the invigilator before the official commencement of this paper.
4. The question paper consists of 30 MCQs and they are all compulsory.
a. Sections A and B are compulsory.
b. Section C comprises of 3 questions; you are required to answer only two questions of your
choice.
SUGGESTED TIME REQUIRED TO ANSWER THIS QUESTION PAPER
NUMBERS QUESTIONS MARKS TIME IN MINUTES
SECTION A: MULTIPLE CHOICE QUESTIONS COMPULSORY
1 Question One 30 35
SECTION B: SHORT QUESTIONS COMPULSORY
2 Question Two 20 25
SECTION C: LONG QUESTIONS (ANSWER TWO QUESTIONS IN THIS SECTION)
3 Question Three 25 35
4 Question Four 25 35
5 Question Five 25 35
TOTAL 100 120

Initiated By Academic Director Dr Muni Kooblal Document No Exams /01/2019


Authorised By Group Chief Executive Officer Mr J Ramnundlall Revision No 01/2015
Issuing Office Head Office – Main Campus CONTROLLED COPY Revision Date 03/06/2019
Document DBS_600 Issue Date 03/06/2019

Page 1 of 9
Downloaded by Tr?n Quân 27. ([email protected])
lOMoARcPSD|23491079

SECTION A: MULTIPLE CHOICE QUESTIONS [30 MARKS]

QUESTION ONE (THIS SECTION IS COMPULSORY) (30 MARKS)


Four alternatives are provided for each of the following questions. Choose the correct option for each of
the questions/statements. Write down the question number in your answer book and the letter next to
the question number.

1.1 An ________ is a set of entities of the same type that share the same properties, or
attributes. (1)
A. Entity set
B. Attribute set
C. Relation set
D. Entity model

1.2 The attribute AGE is calculated from DATE_OF_BIRTH. The attribute AGE is (1)
A. Single valued.
B. multivalued.
C. composite.
D. Derived

1.3 Entity is a _________ (1)


A. Object of relation
B. Present working model
C. Thing in real world
D. Model of relation

1.4 The database environment has all of the following components except
(1)
A. users
B. Separate files
C. Database
D. Database administrators.

1.5 The way a particular application views the data from the database that the
application uses is a (1)
A. Module
B. Relational model
C. Schema

D. Subschema

Initiated By Academic Director Dr Muni Kooblal Document No Exams /01/2019


Authorised By Group Chief Executive Officer Mr J Ramnundlall Revision No 01/2015
Issuing Office Head Office – Main Campus CONTROLLED COPY Revision Date 03/06/2019
Document DBS_600 Issue Date 03/06/2019

Page 2 of 9
Downloaded by Tr?n Quân 27. ([email protected])
lOMoARcPSD|23491079

1.6 Functional dependencies are used for&.. (1)


A. Testing instances of relations
B. Specify constraints on legal relations
C. Both A and B
D. Specifying domain

1.7 In relational model, row of a table is known to be (1)


A. Relation
B. Attribute
C. Tuple
D. Entity field

1.8 To refer to a specific instance of a relation in a relational model the term used is known as
&. (1)
A. Relational instance
B. Relational entity
C. Relational tuple
D. Relational attribute

1.9 Type of specialization in which all subclasses have membership condition on super class of
similar attribute is classified as __________.
(1)
A. constraint-defined specialization
B. key-defined specialization
C. entity-defined specialization
D. attribute-defined specialization

1.10 The refinement from an initial entity set into successive levels of entity subgroupings
represents a ________ design process in which distinctions are made explicit. (1)
A. Hierarchy
B. Bottom up
C. Top down
D. Radical

1.11 Which one of the following is used to define the structure of the relation, deleting
relations and relating schemas (1)
A. DML(Data Manipulation Language)
B. DDL(Data Definition Language)
C. Query
D. Relational Schema

Initiated By Academic Director Dr Muni Kooblal Document No Exams /01/2019


Authorised By Group Chief Executive Officer Mr J Ramnundlall Revision No 01/2015
Issuing Office Head Office – Main Campus CONTROLLED COPY Revision Date 03/06/2019
Document DBS_600 Issue Date 03/06/2019

Page 3 of 9
Downloaded by Tr?n Quân 27. ([email protected])
lOMoARcPSD|23491079

1.12 Which-one of the following statements about normal forms is FALSE? (1)
A. BCNF is stricter than 3 NF
B. Lossless, dependency -preserving decomposition into 3 NF is always possible
C. Loss less, dependency – preserving decomposition into BCNF is always possible
D. Any relation with two attributes is BCNF

1.13 Every time attribute A appears, it is matched with the same value of attribute B, but not
the same value of attribute C. Therefore, it is true that: (1)
A. A → B.
B. A → C.
C. A → (B,C).
D. (B,C) → A

1.14 In which model of database data is stored in tables (1)


A. Network model
B. Relational model
C. Hierarchical model
D. None of the above

1.15 In which ways two tables may be related (1)


A. One to one
B. One to many
C. Many to many
D. All of the above

1.16 Which of the following can be a multivalued attribute (1)


A. Phone number
B. Name
C. Date _of_birth
D. All of the above

1.17 In a relation between the entities the type and condition of the relation should be
specified. That is called as______attribute (1)
A. Descriptive
B. Derived
C. Recursive
D. Relative

Initiated By Academic Director Dr Muni Kooblal Document No Exams /01/2019


Authorised By Group Chief Executive Officer Mr J Ramnundlall Revision No 01/2015
Issuing Office Head Office – Main Campus CONTROLLED COPY Revision Date 03/06/2019
Document DBS_600 Issue Date 03/06/2019

Page 4 of 9
Downloaded by Tr?n Quân 27. ([email protected])
lOMoARcPSD|23491079

1.18 Derived attributes in entity relationship diagrams are denoted by: (1)
A. Dotted triangle
B. Dotted rectangle
C. Dotted Oval
D. Dotted square

1.19 In entity-relationship, entity type which has existence dependency constraint is classified
as (1)
A. Single entity
B. Foreign entity
C. Weak entity
D. Strong entity

1.20 A ___________ is an indirect functional dependency, one in which X->Z Only by virtue of X-
>Y and Y->Z (1)
A. Multivalued Dependencies
B. Join Dependency
C. Trivial Functional Dependency
D. Transitive Dependencies

1.21 The view of total database content is (1)


A. Conceptual view
B. Internal view
C. External view
D. Physical view

1.22 Architecture of the database can be viewed as (1)


A. Two levels
B. Four levels
C. Three levels
D. One levels

1.23 If there is more than one key for relation schema in DBMS, then each key in relation
schema is classified as (1)
A. Prime key
B. Super key
C. Candidate key
D. Primary key

Initiated By Academic Director Dr Muni Kooblal Document No Exams /01/2019


Authorised By Group Chief Executive Officer Mr J Ramnundlall Revision No 01/2015
Issuing Office Head Office – Main Campus CONTROLLED COPY Revision Date 03/06/2019
Document DBS_600 Issue Date 03/06/2019

Page 5 of 9
Downloaded by Tr?n Quân 27. ([email protected])
lOMoARcPSD|23491079

1.24 Consequently R. Boyce-Codd jointly launched powerful definition for the third normal form
called
(1)
A. Boyce-Codd normal form
B. First normal form
C. Second normal form
D. All of the above

1.25 Codd suggested how many forms in normalization process (1)


A. 1
B. 2
C. 3
D. 4

1.26 Which is the process of breaking a relation into multiple relations? (1)
A. Functional dependency
B. Database modelling
C. Normalization
D. Decomposition

1.27 The database design prevents some data from being represented due to _______: (1)
A. Deletion anomalies
B. Insertion anomalies
C. Update anomalies
D. None of the above

1.28 Normal form which only includes indivisible values or single atomic values is classified as (1)
A. Third normal form
B. First normal form
C. Second normal form
D. Fourth normal form

1.29 If attribute of relation schema R is member of some candidate key, then this type of
attributes is classified as (1)
A. Atomic attribute
B. Candidate attribute
C. Nonprime attribute
D. Prime attribute

Initiated By Academic Director Dr Muni Kooblal Document No Exams /01/2019


Authorised By Group Chief Executive Officer Mr J Ramnundlall Revision No 01/2015
Issuing Office Head Office – Main Campus CONTROLLED COPY Revision Date 03/06/2019
Document DBS_600 Issue Date 03/06/2019

Page 6 of 9
Downloaded by Tr?n Quân 27. ([email protected])
lOMoARcPSD|23491079

1.30 Form of dependencies in which set of attributes that are neither a subset of any of keys
nor candidate key is classified as (1)
A. transitive dependency
B. full functional dependency
C. partial dependency
D. prime functional dependency

SECTION B: (THIS SECTION IS COMPULSORY ) (20 MARKS)

QUESTION TWO (20 MARKS)

2.1 Construct an E-R diagram for a car-insurance company whose customers own one or more
cars each. Each car has associated with it zero to any number of recorded accident. (10)
2.2 You are also required to construct the tables, with sample data, for the ER diagram you
have designed for the above question. (10)

SECTION C: [ANSWER TWO QUESTIONS IN THIS SECTION] (50 MARKS)

QUESTION THREE (25 MARKS)

3.1 The South African embassy records details of interviews of visa applicants in the table
below Interviews are conducted by members of staff in some of the embassy rooms. In
any given day, a member of staff tends to use the same room throughout that day. An
applicant cannot have two interviews in the same day.

applicantNo interviewDate interviewTime staffNo roomNo


AP1 13-May-2016 10:30 S5 R101

AP2 13-May-2016 12:00 S5 R101

AP3 13-May-2016 12:00 S9 R200

AP2 22-Sep-2016 10:30 S5 R200

3.1.1 Explain the term candidate key (5)


3.1.2 List three candidate keys for the above. (5)

3.2 The three-tier architecture is commonly used to implement a database driven web
application. Draw a diagram to illustrate this architecture (10)
3.3 Explain the duties and responsibilities of a database administrator?
(5)

Initiated By Academic Director Dr Muni Kooblal Document No Exams /01/2019


Authorised By Group Chief Executive Officer Mr J Ramnundlall Revision No 01/2015
Issuing Office Head Office – Main Campus CONTROLLED COPY Revision Date 03/06/2019
Document DBS_600 Issue Date 03/06/2019

Page 7 of 9
Downloaded by Tr?n Quân 27. ([email protected])
lOMoARcPSD|23491079

QUESTION FOUR (25 MARKS)

4.1 Explain what a relationship is, and what three types of relationship exist? Give an example (15)
of each of the three types of relationship.
4.2 Explain what is logical independence? (5)
4.3 Explain what is a relation, and what role does it play in the relational model? (5)

QUESTION FIVE (25 MARKS)

5.1 Refer to the following tables then answer the questions that follow.

Table1 Publisher:
pub_ID pub_name address city state
736 New Age Books 4 1st Ave. Boston MA

877 Binnet&Barney 23 34rd St. Washington DC

1389 AlgoDumini 47 9th Ave. Berkeley CA

Table 2 Titles:
Title_ID title cat Pub_ID price
2091 Is anger the enemy psychology 0736 10.00
2106 Life without fear psychology 0736 7.00
1035 alien sci-fi 1389 19.99

SQL query 1:
SELECT pub_ID, pub_name
FROM publisher
WHERE state NOT IN ('MA','IL') AND pub_name NOT LIKE 'A%'
SQL query 2:
SELECT cat, AVG(price) AS AveragePrice, SUM (price + price*0.2) AS TotalPrice
FROM titles
GROUP BY cat;

Show the data output produced when each of the following SQL queries are executed.

(15)

Initiated By Academic Director Dr Muni Kooblal Document No Exams /01/2019


Authorised By Group Chief Executive Officer Mr J Ramnundlall Revision No 01/2015
Issuing Office Head Office – Main Campus CONTROLLED COPY Revision Date 03/06/2019
Document DBS_600 Issue Date 03/06/2019

Page 8 of 9
Downloaded by Tr?n Quân 27. ([email protected])
lOMoARcPSD|23491079

5.2 The above tables are in the first normal form (1NF). You required to normalize the tables
into the second normal form (2NF). Show the resulting tables with their dependencies and
explain your answer. (10)

TOTAL MARKS: 100

Initiated By Academic Director Dr Muni Kooblal Document No Exams /01/2019


Authorised By Group Chief Executive Officer Mr J Ramnundlall Revision No 01/2015
Issuing Office Head Office – Main Campus CONTROLLED COPY Revision Date 03/06/2019
Document DBS_600 Issue Date 03/06/2019

Page 9 of 9
Downloaded by Tr?n Quân 27. ([email protected])

You might also like