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

f4109 Database System

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

f4109 Database System

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 6
SULIT POLITEKNIK-POLITEKNIK MALAYSIA JABATAN MATEMATIK, SAINS & KOMPUTER PEPERIKSAAN AKHIR SESI JANUARI 2007 KURSUS —: DIP SEMESTER :5 MASA : 8.15- 10.15 PAGI TARIKH =: 11 JUN 2007 F4109 DATABASE SYSTEM PERALATAN YANG DISEDIAKAN: TIADA ARAHAN KEPADA CALON: ane . Jangan buka kertas soalan ini sehingga diberitahu. . Calon tidak dibenarkan membawa masuk ke dalam bilik/dewan peperiksaan apa juga barang atau dokumen yang tidak dibenarkan. ._Kertas soalan ini mengandungi ENAM soalan sahaja dan setiap soalan mempunyai 25 markah. 1. Calon dikehendaki menjawab EMPAT (4) soalan sahaja. . Sila jawab di atas kertas jawapan yang disediakan. . Anda hanya dibenarkan membawa keluar peralatan anda dan kertas soalan ini sahaja. ngandungi ( 6 ) halaman bercetak termasuk muka hadapan. Unit Peperiksaan Jabatan MSK, Politeknik Kuching Sarawak. 4109: DATABASE SYSTEM QUESTION 1 a. Explain these following terms: Jelaskan maksud bagi istilah-istilah berikut: i) Data model i) Data model scheme ii) Database design Give FIVE (5) functions which are perform by database management system (Dams) Berikan LIMA (5) fungsi yang dikendalikan oleh sistem pengurusan pangkalan data (DBMS). Data models can be grouped into three categories. Give the THREE (3) categories. ‘Model data boleh dibahagikan kepada tiga kategori. Berikan TIGA (3) kategori tersebut. Explain what network data model is. Then, write TWO (2) advantages and disadvantages of network data model. Jelaskan apakah model data rangkaian. Kemudian, tuliskan DUA (2) kebaikan dan keburukan model data rangkaian. Give FIVE (5) major parts of database system, Berikan LIMA (5) bahagian utama dalam sistem pangkalan data. QUESTION 2 a. What is entity relationship model (E-R model)? Write THREE (3) major components of E-R model. Apakah itu mode! hubungan (E-R model)? Tuliskan TIGA (3) komponen utama bagi E-R model. Draw the correct symbol, used in Chen Model, for: i) Composite entity ii) Weak entity ili) Option Lukiskan simbol yang betul, yang digunakan dalam Chen Model, untuk: i) — Composite entity ii) Weak entity iii) Option (6 marks) (5 marks) (3 marks) (6 marks) (6 marks) (5 marks) (6 marks) F4109; DATABASE SYSTEM ¢. Define what relationship cardinality in E-R model is. (2 marks) Berikan definisi maksud bagi kardinaliti hubungan dalam E-R model. d. Draw suitable E-R diagram (Chen Model) for the following questions. Lukiskan rajah E-R (Chen Model) yang bersesuaian bagi soalan-soalan berikut. i) ii) iii) QUESTION 3 An invoice is written by a sales representative. Each sales representative can write many invoices, but each invoice is written a single sales representative. (3 marks) ‘An employee may be assigned to many projects, and a project may have many employees assigned to it. But, each project must have at least one employee assigned to it. (4 marks) Each of the Hudson Engineering Group's employee may or may not have one or more dependents. (6 marks) a. These terms are used in Relational Data model, explain each of them. i) ii) iil) Degree Cardinality Foreign Key a) marks) Istilah-istilah berikut digunakan di dalam Model Hubungan, jelaskan maksudnya. 0 Degree Cardinality Foreign Key b. Explain what is the functions for the following operational algebra. i) ii) iti) Set difference Intersect Join (6 marks) Jelaskan fungsi bagi operator algebra berikut. i) i) ii) Set difference Intersect Join 4109: DATABASE SYSTEM ©. Study these tables carefully. Fahami jadual-jadual dengan telit Table name: EMPLOYEE EMP_CODE | EMP TITLE | EMP_LNAME | EMP_FNAME | EMP_DOB | STORE_CODE 1 | Mr. Williamson John 21-May-64 3 2) Ms. | Ratula Nancy | 09-Feb-69 | 2 3 | Ms. | Greenboro Lottie | 02-Oct-61 4 4| Mrs Rumpersiro | Jennie Ot-Jun-71 5 5 | Mr. Smith Robert 23-Nov-59 3 _6 | Mr. Renselaer__| Cary _ 25-Dec-65 Table name: STORE _ _ STORE CODE | STORE NAME | STORE YEARLY SALES | REGION_CODE | EMP_CODE T| Access $1, 003, 455.76 | 2 6 2 | Junction | $ 1, 421, 987.39 | 2 2 3| Database | $ 986, 783.22 | 1 1 | 4 | Corner $ 944, 568.56 | 2 3 5 | Tuple Charge $ 2, 930, 098.45 | 1 | 4 Attribute Alley | 7 | | ___| Primary Point _ _ __ ane Table name: REGION [REGION EGION_DESCRIPT 1) East 2 | West i) Identify primary key for each table. (3 marks) ji) Identify its foreign key. (3 marks) ili) Write suitable command to get a listing of employee code, store name, region code and region descript. (3 marks) iv) Write suitable command to find out which store is situated in west area (2 marks) ¥) Write suitable command to find out which employee works in Tuple Charge's store. (2 marks) QUESTION 4 a. There are 12 steps involve in database design. Write down the first SIX (6) steps. (12 marks) Di dalam merekabentuk pangkalan data, terdapat 12 langkah. Tuliskan ENAM (6) langkah yang pertama, b. What are the difference between strategic planning and tactical planning? (6 marks) Apakah perbezaan antara perancangan strategic dan perancangan taktikal? ©. Explain what is concurrency control and its purpose. (4 marks) Jelaskan apakah yang dimaksudkan dengan kawalan keserentakan dan apakah tujuannya. 4109: DATABASE SYSTEM d. List down THREE (3) security measures that an organization can use to protect its data. (3 marks) Senaraikan TIGA (3) langkah keselamatan yang boleh digunakan oleh sesuatu organisasi untuk melindungi data mereka. QUESTION 5 . Explain what is functional dependency and partial functional dependency in normalization. (4 marks) Jelaskan maksud kebersandaran fungsian dan kebersandaran fungsian separa di dalam normalisasi. b. What THREE (3) data anomalies are likely to be the result of data redundancy? @ marks) Apakah TIGA (3) kejanggalan data yang berlaku disebabkan lewahan data? c. Study this table carefully. Kaji jadual berikut dengan telit, PROJ_NUM | PROJ_NAME | EMP_NUM | EMP_NAME | JOB_CLASS | CHG_HOUR | HOURS | 74 | Starlight 101 | Alice John | Engineer $84.50; 22.5] 14 | Starlight 103 | Travis Wang | DSS Analyst $45.95 12.1 | | 17 | Master 112 | Anne Reno | General $1838] 238) | 47 | Master 124 | David Jones | Support $84.50 32.2 | 23 | Omega 109 | Maria | Engineer | $96.75 19.4 | | 23 | Omega 107 | Alonzo —_—| System $35.75| 27.8 | | Darlene | Analyst | l | _ Smith | Programmer _| This table is in 1 Normal Form. The primary key is the combination of PROJ_NUM and EMP_NUM. Based on the table, you have to’ i) Identify and write down the functional dependency of this table, (6 marks) ji) Normalize this table to 2 Normal Form, (6 marks) d. What is transitive dependency and with what normal form is it associated? Give an example. (6 marks) Apakah ia kebersandaran fungsian transitif dan dengan bentuk penormalan manakah ianya dikaitkan? Berikan contoh yang bersesuaian. 4109: DATABASE SYSTEM QUESTION 6 a What is deadlock? Give THREE (3) methods to control deadiock. (5 marks) Apakah ia deadlock? Berikan TIGA (3) cara untuk mengawal deadlock. List down TWO (2) benefits of using Structured Query Language (SQL). (2 marks) Senaraikan DUA (2) kebaikan mengunakan Bahasa Pertanyaan Berstuktur (SQL). Study this table carefully. Kaji jadual berikut dengan teliti. PNTG_NUM [PNTG_TITLE | PNTG_PRICE | PAINTER NUM [GALLERY NUM 1338 Dawn Thunder | $ 245.50 123|5 1339 A Faded Rose $6,723.00 1236 1340 The Founders $567.99 126 |6 1341 Hasty Pudding Exit $ 145.50 1235 1342 Plastic Paradise $ 8,328.99 126|6 1343 Wild Waters i $999.00 | _177|6 By using SQL command, create a query for each of these questions: Dengan menggunakan bahasa pertanyaan SQL, cipta satu pertanyaan bagi setiap soalan berikut i) Produce a list in ascending order by gallery number, (6 marks) ii) Produce a list of painting title which was sold under $ 2,000. (6 marks) ii) Getall the information of painting which was painted by painter whose painter number is 123. (6 marks) KERTAS SOALAN TAMAT SEMOGA BERJAYA

You might also like