9
CONFIDENTIAL FINAL EXAMINATION AUGUST 2013 (COHORT 4) SEMESTER EXAMINATION ACADEMIC SESSION 2013 COURSE : DATABASE SYSTEM COURSE CODE : IAS 2143 DURATION : 3 HOURS FACULTY : COMPUTER SCIENCE AND INFORMATION TECHNOLOGY PROGRAMME : BACHELOR OF SCIENCE IN INFORMATION TECHNOLOGY (HONS) BACHELOR OF COMPUTER SCIENCE (SOFTWARE ENGINEERING) (HONS) BACHELOR OF COMPUTER SCIENCE (HONS) BACHELOR OF INFORMATION TECHNOLOGY (KNOWLEDGE MANAGEMENT) (HONS) BACHELOR OF SCIENCE IN IT WITH SUPPLY CHAIN MANAGEMENT(HONS) BACHELOR OF BIOINFORMATICS (HONS) LECTURER : MR AZHAR HAMID GROUP : MR AZHAR HAMID (1) INSTRUCTIONS TO CANDIDATES This paper consists of (3) sections: Section A – 20 questions (multichoice questions) Section B – 6 questions Section C – 2 questions Answer all questions in Section A, B, and C. All answers of Section A must be answered in the OMR form provided. : Section B and C must be written in answer booklet provided. The answer for each question must start on a new page. Candidates are NOT ALLOWED to bring any unauthorized items into the exam hall except with the permission of your invigilator. Do Not Open the Question Paper Until Instructed This Question Paper Consists of Nine (9) Printed Pages

Data base

Embed Size (px)

DESCRIPTION

unisel

Citation preview

Page 1: Data base

CONFIDENTIAL

FINAL EXAMINATION AUGUST 2013 (COHORT 4) SEMESTER EXAMINATION

ACADEMIC SESSION 2013 COURSE : DATABASE SYSTEM COURSE CODE : IAS 2143 DURATION : 3 HOURS FACULTY : COMPUTER SCIENCE AND INFORMATION TECHNOLOGY PROGRAMME : BACHELOR OF SCIENCE IN INFORMATION TECHNOLOGY (HONS) BACHELOR OF COMPUTER SCIENCE (SOFTWARE ENGINEERING) (HONS) BACHELOR OF COMPUTER SCIENCE (HONS)

BACHELOR OF INFORMATION TECHNOLOGY (KNOWLEDGE MANAGEMENT) (HONS) BACHELOR OF SCIENCE IN IT WITH SUPPLY CHAIN MANAGEMENT(HONS) BACHELOR OF BIOINFORMATICS (HONS)

LECTURER : MR AZHAR HAMID GROUP : MR AZHAR HAMID (1) INSTRUCTIONS TO CANDIDATES This paper consists of (3) sections:

Section A – 20 questions (multichoice questions) Section B – 6 questions Section C – 2 questions

Answer all questions in Section A, B, and C. All answers ofSection A must be answered in the OMR form provided.

:

Section B and C must be written in answer booklet provided. The answer for each question must start on a new page. Candidates are NOT ALLOWED to bring any unauthorized items into the exam hall except with the permission of your invigilator.

Do Not Open the Question Paper Until Instructed

This Question Paper Consists of Nine (9) Printed Pages

Page 2: Data base

FCSIT/IAS2143/AUG13

CONFIDENTIAL/2

SECTION A (20 Marks) Answer ALL the questions. For each question choose the best answer. 1. Which of the following is a statement on limitations of file based system?

A. Data integrity. B. Data independence. C. Data dependence.

D. Data consistency 2. Which of the following is the disadvantage of relational model?

A. Structural independence. B. Ad hoc query capability. C. May promote “island of information”. D. Improved conceptual simplicity.

3. “Where a model represents a relationship between entity types, but pathway between certain entities occurrences is ambiguous.”

Which of the following describe the above statement? A. Fan trap.

B. Chasm trap. C. Booby trap. D. Mouse trap. 4. Which of the following answer is NOT a characteristic of a suitable relation?

A. The minimal number of attributes necessary to support the data requirements of the enterprise.

B. Attributes with a close logical relationship are found in the same relation.

C. Minimal redundancy with each attribute represented only once with the important exception of attributes that form all or part of foreign keys.

D. Minimal number of entities with many attributes to reduce complexity of the relationship among the entities.

Page 3: Data base

FCSIT/IAS2143/AUG13

CONFIDENTIAL/3

5. SELECT employeeNo, address, age, salary FROM Employee ORDER BY salary, age DESC; What is the result of the SQL statement above?

A. Display value for columns employeeNo, address, age, salary from table Employee.

B. Display value for columns employeeNo, address, age, salary from table Employee and display all the records in descending order.

C. Display value for columns employeeNo, address, age, salary from table Employee and display all the records by salary and age in descending order.

D. Display value for columns employeeNo, address, age, salary from table Employee and display all the records by salary in ascending and age in descending order.

6. Which of the following shows step by step phases of Database Life Cycle

(DBLC)?

A. Database Initial Study, Database Design, Implementation and Loading, Testing and Evaluation, Operation, Maintenance and Evaluation.

B. Database Initial Study, Database Design, Testing and Evaluation, Implementation and Loading, Operation, Maintenance and Evaluation.

C. Database Initial Study, Operation, Database Design, Implementation and Loading, Testing and Evaluation, Maintenance and Evaluation.

D. Database Initial Study, Database Design, Implementation and Loading, Operation, Testing and Evaluation, Maintenance and Evaluation.

7. Which of the following is NOT the advantage of Distributed Database

Management System? A. Faster data access.

B. Growth facilitation. C. Security. D. Processor independence.

8. Which of the following NOT involves in database security?

A. Loss of usability. B. Loss of integrity. C. Loss of availability. D. Loss of confidentiality.

Page 4: Data base

FCSIT/IAS2143/AUG13

CONFIDENTIAL/4

9. “DROP TABLE Student;”

Which of the following answer is the result of the execution of the above statement?

A. Remove table Student and all rows within it. B. Remove table Student and all columns within it. C. Remove table Student. D. Remove all columns and rows.

10. Record-based logical data models consists of the following models EXCEPT

A. Relational data model. B. Network data model. C. Hierarchical data model. D. Object-oriented data model.

11. Which of the following best describes the relationship for customers who book

tickets in a flight database?

A. One to one. B. One to many. C. Many to many. D. One to some.

12. Which of the following term is an alternative terminology for a relation?

A. Table. B. Tuple. C. Attribute. D. None of the above.

Figure 1 13. What is the result of the execution of the SQL statement in Figure 1?

A. Update salary of all staff to 18000 which position is manager. B. Update salary of all managers to 18000 and set position for a staff with

staff number ‘SG14’ to a manager. C. Update salary for staff with staff number ‘SG14’ to 18000 and set the

position to a manager. D. Update position of staff with staff number ‘SG14’ to a manager and all

staff with salary 18000.

UPDATE Staff SET position = ‘Manager’, salary = 18000 WHERE staffNo = ‘SG14’;

Page 5: Data base

FCSIT/IAS2143/AUG13

CONFIDENTIAL/5

Figure 2

14. What is the cardinality or multiplicity of the entity relationship in Figure 2? A. One-to-one. B. Many-to-one. C. One-to-many. D. Many-to-many.

15. Which of the following statements describe a derived attribute?

A. An attribute composed of a single component with an independent

existence. B. An attribute composed of multiple components, each with an

independent existence. C. An attribute that holds multiple values for each occurrence of an entity. D. An attribute that represents a value that is derivable from the value of a

related attribute.

Figure 3 16. The SQL statement in Figure 2 is to

A. find the total number of staff and manager and the sum of their

salaries. B. find the manager with the highest salary. C. find the total number of staff and the sum of their salaries. D. find the total number of managers and the sum of their salaries.

17. Which of the following statements describe a multi-valued attribute?

A. An attribute composed of a single component with an independent

existence. B. An attribute composed of multiple components, each with an

independent existence. C. An attribute that holds multiple values for each occurrence of an entity. D. An attribute that represents a value that is derivable from the value of a

related attribute.

Manage

Employee

Branch

SELECT COUNT (staffNo) AS totStaff, SUM (Salary) AS totSalary FROM Staff WHERE position = ‘Manager’;

Page 6: Data base

FCSIT/IAS2143/AUG13

CONFIDENTIAL/6

18. What is the purpose of normalization?

A. Normalization is a technique for producing a set of suitable relations that support the data requirements of an enterprise.

B. Normalization is a technique for producing a set of suitable attributes that support the data requirements of an enterprise.

C. Normalization is a technique for producing a set of suitable data requirements of an enterprise.

D. Normalization is a technique for producing a set of suitable relations that secure the data requirements of an enterprise.

19. In order to design a new database, the database designer must

A. identify and model the problem. B. identify the entities involved in the problem. C. specify the characteristics of the entities that have to be captured. D. all of the above.

20. The command used to add a row in a database is

A. ADD. B. CREATE. C. INSERT. D. MAKE.

Page 7: Data base

FCSIT/IAS2143/AUG13

CONFIDENTIAL/7

SECTION B (60 Marks) Answer ALL questions. Question 1 Explain the following database languages in details.

a) Data Definition Language (DDL) (4 marks)

b) Data Manipulation Language (DML)

(6 marks) Question 2 Write the SQL code for the following questions based on the given Staff schema: Staff (StaffNo, Name, Address, Sex, Position, Salary, BranchNo)

a) For each branch with more than 1 member of staff, find number of staff in each branch and sum of their salaries.

(7 marks)

b) Promote Siti Aminah (staffNo=‘SG14’) to Manager and change his salary to RM18,000.

(3 marks) Question 3 Given the following descriptions, create an appropriate ER diagram for each of the specified relationships.

a) Each company operates four departments, and each department belongs to one company.

(5 marks)

b) Each department in part (a) employs one or 20 employees, and each employee is employed by one department.

(5 marks)

Page 8: Data base

FCSIT/IAS2143/AUG13

CONFIDENTIAL/8

Question 4

a) What is a degree of relationship? (1 mark)

b) Draw Entity-Relationship Diagram (ERD) for the following degree of relationship.

i) Unary/Recursive

(2 marks) ii) Binary

(2 marks) iii) Ternary

(2 marks) iv) Quaternary

(3 marks) Question 5 Briefly describe parallel Database Management System (DBMS) and draw its THREE (3) main architectures.

(10 marks) Question 6

a) Discuss on the generations of Database Management System (DBMS). (8 marks)

b) Draw a diagram that shows the history of data models.

(2 marks)

Page 9: Data base

FCSIT/IAS2143/AUG13

CONFIDENTIAL/9

SECTION C (20 Marks) Answer any ONE (1) question. Question 1 Do normalization from First Normal Form (1NF) until Third Normal Form (3NF) and state the rules for the normalization based on the given CustomerOrder relation. Then draw a complete Entity-Relationship Diagram (ERD) based on the normalized relation. CUSTOMERORDER (CustNo

Assumption: A customer can have multiple orders but an order can be for only one product. (20 marks)

, CustName, OrderNo, ProdNo, ProdDesc, Qty, CustAddress, DateOrdered)

Question 2 Draw an Entity Relationship Diagram (ERD) based on the following business rules about Car Maintenance System:

1. A customer can own many cars. 2. Some customers do not own cars. 3. A car is owned by one and only one customer. 4. A car can get (generate) a maintenance record more than once. 5. Each maintenance record is generated by one and only one car. 6. Some cars have not (yet) generated a maintenance procedure. 7. Each maintenance procedure can use many parts.

(Comment: A maintenance procedure may include multiple maintenance actions, each one of which may or may not use parts. For example, 10,000-mile check may include the installation of a new oil filter and a new air filter. But tightening an alternator belt does not require a part.)

8. A part may be used in many maintenance records. (Comment: Each time an oil change is made, an oil filter is used. Therefore, many oil filters may be used during some period of time. Naturally, you are not using the same oil filter each time – but the part classified as “oil filter” shows up in many maintenance records as time passes.)

(20 marks)

END OF QUESTION PAPER