0% found this document useful (0 votes)
145 views11 pages

EDI 104 - Set B Question

Uploaded by

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

EDI 104 - Set B Question

Uploaded by

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

CONFIDENTIAL/SULIT

SEPTEMBER 2020 SEMESTER / SEMESTER SEPTEMBER 2020


FINAL EXAMINATION / PEPERIKSAAN AKHIR

COURSE / KURSUS : DATABASE FUNDAMENTALS


CODE / KOD : EDI 104
DATE / TARIKH :
DURATION / TEMPOH : 2 HOURS / 2 JAM
TIME / MASA :

INSTRUCTIONS TO CANDIDATES / ARAHAN KEPADA CALON

1. Please read instruction carefully before answering the questions. You are not allowed to open the question paper
until instructed.
Sila baca arahan dengan teliti sebelum menjawab soalan. Anda tidak dibenarkan membuka kertas soalan ini sehingga
diberi arahan.

2. This questions paper is set in English and Bahasa Malaysia. It is STRONGLY ENCOURAGED that to answer in
ENGLISH.
Kertas soalan ini disediakan dalam Bahasa Inggeris dan Bahasa Malaysia. Adalah SANGAT DIGALAKKAN untuk
menjawab dalam BAHASA INGGERIS.

3. This question paper consists of THREE Parts – PART A, PART B and PART C. Read CAREFULLY the
instructions for each PART.
Kertas soalan ini terdiri daripada TIGA bahagian – BAHAGIAN A, BAHAGIAN B dan BAHAGIAN C. Baca DENGAN
TELITI arahan bagi setiap BAHAGIAN.

4. Write your I/C NO / PASSPORT NO, STUDENT ID, CLASS CODE and LECTURER’S NAME in the section
provided.
Tulis NO I/C / NO PASSPORT, ID PELAJAR, KOD KELAS dan NAMA PENSYARAH pada bahagian yang disediakan.

5. Write your answer in the Answer Booklet provided.


Tulis jawapan anda dalam Buku Jawapan yang dibekalkan.

6. Use only BLACK or BLUE PEN.


Gunakan PEN BIRU atau HITAM sahaja.

7. Attach the FRONT COVER to your answer sheet.


Kepilkan bahagian MUKASURAT HADAPAN ini berserta dengan jawapan anda.

I/C NO / PASSPORT NO CLASS CODE


STUDENT ID LECTURER

---------------------------------------------------- To Be Filled by The Examiner Only --------------------------------------------------------

SECTIONS MARKS CHECKER 1 CHECKER 2 REMARKS


A 10 Total (100 marks)
B 50
C 40 Total (40%)
NAME
BRANCH

This question paper consists of 10 PAGES of questions printed including this page.
Kertas soalan ini mengandungi 10 MUKA soalan yang bercetak termasuk muka ini.
EDI104 DATABASE FUNDAMENTALS/SEM. SEPT 2020

PART A MULTIPLE CHOICE QUESTIONS


BAHAGIAN A SOALAN PELBAGAI PILIHAN

INSTRUCTIONS / ARAHAN
Part A consists of TEN questions. Answer ALL questions.
Bahagian A mengandungi SEPULUH soalan. Jawab SEMUA soalan.

QUESTIONS / SOALAN Marks / Markah

1. Which of the following data types accepts only YES and NO value?

Manakah antara jenis data berikut menerima hanya nilai YA dan TIDAK sahaja?

A. Boolean. / Boolean.
B. Text. / Teks.
C. Numeric. / Nombor
D. Date. / Tarikh. (1)

2. Which of the following is NOT CORRECT for database approach?

Manakah antara berikut adalah TIDAK BENAR berkenaan pendekatan pangkalan data?

A. Minimal data redundancy. / Pengulangan data minimum.


B. Sharing of data. / Perkongsian data.
C. Duplication of data. / Penyalinan data.
D. Improved data consistency. / Memperbaiki konsistensi data. (1)

3. __________ is normally used to describe relationship in ERD.

__________ biasanya digunakan untuk mewakili hubungan di dalam ERD.

A. Noun / Kata nama


B. Verb / Kata kerja
C. Adjective / Kata sifat
D. Proper Noun / Nama khas (1)

4. Event can be declared as __________ in ERD.

Peristiwa boleh diklasifikasikan sebagai __________ di dalam ERD.

A. entity / entiti
B. relationship / hubungan
C. attribute / atribut
D. key / kunci (1)

Page 2 of 10
EDI104 DATABASE FUNDAMENTALS/SEM. SEPT 2020

5. Which of the following key is imported from another table?

Manakah di antara kunci berikut dipanggil daripada jadual lain?

A. Primary key. / Kekunci utama.


B. Composite key. / Kekunci komposit.
C. Candidate key. / Kekunci calon.
D. Foreign key. / Kekunci asing. (1)

6. DML can do the following task, EXCEPT

DML boleh melakukan tugas berikut, KECUALI

A. Insert. / Tambah.
B. Update. / Kemaskini.
C. Create. / Cipta.
D. Delete. / Hapus. (1)

7.

Figure 1 / Rajah 1

The Figure 1 above represents __________.

Rajah 1 di atas mewakili __________.

A. Report view / Paparan laporan


B. Form view / Paparan borang
C. Design view / Paparan reka bentuk
D. Table view / Paparan jadual (1)

Page 3 of 10
EDI104 DATABASE FUNDAMENTALS/SEM. SEPT 2020

8.
STUDENT (stud_id, name, address)

Figure 2 / Rajah 2

Based on relational schema in Figure 2, identify the relation name.

Berdasarkan skema hubungan di dalam Rajah 2, kenalpastikan nama hubungan.

A. stud_id / stud_id
B. Student / Pelajar
C. name / nama
D. address / alamat (1)

9. All of the following are anomalies, EXCEPT

Semua yang berikut adalah anomali, KECUALI

A. Modification. / Pengubahan.
B. Insert. / Penambahan.
C. Delete. / Penghapusan.
D. Redundancy. / Pengulangan. (1)

10. Removing transitive dependency is the task in __________.

Menghapuskan kebergantungan transitif adalah tugas di peringkat __________.

A. UNF / UNF
B. 1NF / 1NF
C. 2NF / 2NF
D. 3NF / 3NF (1)

Page 4 of 10
EDI104 DATABASE FUNDAMENTALS/SEM. SEPT 2020

PART B STRUCTURED QUESTIONS


BAHAGIAN B SOALAN BERSTRUKTUR

INSTRUCTIONS / ARAHAN
Part B consists of SIX questions. Answer FIVE ONLY.
Bahagian B mengandungi ENAM soalan. Jawab LIMA SAHAJA.

QUESTIONS / SOALAN Marks / Markah

1. There are six types of data hierarchy. List FIVE (5) and explain each of them. (10)

(Total : 10)

Terdapat enam jenis hierarki data. Senaraikan LIMA (5) dan terangkan setiap daripada satunya. (10)

2. a. Explain is the purpose of Microsoft Access? (2)

b. Identify and describe the purpose of all the Microsoft Access components. (8)

(Total : 10)

a. Terangkan kegunaan Microsoft Access? (2)

b. Kenalpastikan dan terangkan tujuan setiap komponen di dalam Microsoft Access. (8)

3. a. Write and draw all the elements of Entity Relationship Diagram (ERD). (6)

b. List all the types of attributes. (4)

(Total : 10)

a. Tulis dan lukiskan kesemua unsur yang ada di dalam Rajah Hubungan Entiti (ERD). (6)

b. Senaraikan semua jenis attribut. (4)

Page 5 of 10
EDI104 DATABASE FUNDAMENTALS/SEM. SEPT 2020

4. a. List all the steps to develop ERD. (6)

Figure 3 / Rajah 3

b. Draw the ERD for statement in Figure 3. (4)

(Total : 10)

a. Senaraikan semua langkah-langkah untuk menghasilkan ERD. (6)

b. Lukiskan ERD untuk pernyataan di dalam Rajah 3. (4)

5.

Figure 4 / Rajah 4

Answer the following questions based on Figure 4.

a. Write all the primary keys. (3)

b. Write all the foreign keys. (2)

c. Write the cardinality constraint for Department and Employee. (2)

d. Write the cardinality constraint for Employee and Project. (2)

e. Is the name in Department and Employee are the same? Justify your answer. (1)

(Total : 10)

Page 6 of 10
EDI104 DATABASE FUNDAMENTALS/SEM. SEPT 2020

Jawab soalan berikut berdasarkan Rajah 4.

a. Tuliskan semua kekunci primer. (3)

b. Tuliskan semua kekunci asing. (2)

c. Tuliskan kekangan kardinaliti untuk Department dan Employee. (2)

d. Tuliskan kekangan kardinaliti untuk Employee dan Project. (2)

e. Adakah nama pada Department dan Employee merujuk kepada nama yang sama? Berikan alasan anda. (1)

6. a. What is anomalies? (2)

b. List all types of anomalies. (3)

Figure 5 / Rajah 5

c. What is the type of anomalies for Figure 5? (1)

d. Based on your answer in (c), why it happened? (2)

e. Based on your answer in (c), how do you solve it? (2)

(Total : 10)

a. Apakah itu anomali? (2)

b. Senaraikan semua jenis anomali. (3)

c. Apakah jenis anomali yang terdapat dalam Rajah 5? (1)

d. Berdasarkan jawapan anda di (c), mengapakah ianya terjadi? (2)

e. Berdasarkan jawapan anda di (c), bagaimanakah anda menyelesaikannya? (2)

Page 7 of 10
EDI104 DATABASE FUNDAMENTALS/SEM. SEPT 2020

PART C ESSAY QUESTIONS


BAHAGIAN C SOALAN ESEI

INSTRUCTIONS / ARAHAN
Part C consists of THREE questions. Answer TWO ONLY.
Bahagian C mengandungi TIGA soalan. Jawab DUA SAHAJA.

QUESTIONS / SOALAN Marks / Markah

1. Cosmo International College (CIC) has 15 lecturers and can handle up to 30 students per class. CIC offers
five technology courses, each of which may generate several classes. If a class has fewer than 10 students in
it, it will be canceled. Therefore, it is possible for a course not to generate any classes during a semester.
Each class is taught by one lecturer. Each lecturer may teach up to two classes or may be assigned to do
research. Each student may register up to two classes per semester.

a. List all the entities involved. (4)

b. Identify the relationship for those entities. (4)

c. Draw the ERD for the above situation. (12)

(Total : 20)

Cosmo International College (CIC) mempunyai 15 pensyarah dan boleh mengendalikan sehingga 30 orang
pelajar bagi setiap kelas. CIC menawarkan lima kursus teknologi, dengan setiap satu boleh dijalankan dalam
beberapa kelas. Jika setiap kelas mempunyai kurang daripada 10 pelajar, kelas tersebut akan dibatalkan. Oleh
yang demikian, adalah mungkin untuk suatu kursus tidak mempunyai sebarang kelas bagi semester itu. Setiap
kelas akan diajar oleh seorang pensyarah. Setiap pensyarah boleh mengajar sehingga dua kelas atau ditugaskan
untuk melakukan penyelidikan. Setiap pelatih boleh mendaftar sehingga dua kelas pada setiap semester.

a. Senaraikan semua entiti yang terlibat. (4)

b. Kenalpastikan hubungan untuk setiap entiti. (4)

c. Lukiskan ERD untuk situasi di atas. (12)

Page 8 of 10
EDI104 DATABASE FUNDAMENTALS/SEM. SEPT 2020

Statement 1 / Pernyataan 1

2. Write the SQL query to answer the following questions base on statement 1 above.

a. Retrieve the name and address of patients who live in Melaka. (3)

b. Retrieve the information of all doctors who can treat “Neuro” problem and who earn more than
RM65,000. (4)

c. Retrieve the name, sex and age of every patient at “Melaka General” hospital. (5)

d. Retrieve the name, age and phone number of every Male patient. (3)

e. Retrieve the name of every doctor ever treated patient older than 65. (5)

(Total : 20)

Tuliskan pernyataan SQL untuk menjawab soalan beriku berdasarkan pernyataan 1 di atast.

a. Dapatkan nama dan alamat pesakit yang tinggal di Melaka. (3)

b. Dapatkan maklumat semua doktor yang boleh merawat penyakit “Neuro” dan memperolehi gaji lebih dari
RM65,000. (4)

c. Dapatkan nama, jantina dan umur setiap pesakit di Hospital Besar Melaka. (5)

d. Dapatkan nama, umur dan nombor telefon setiap pesakit lelaki. (3)

e. Dapatkan nama setiap doktor yang pernah merawat pesakit yang berumur lebih dari 65. (5)

Page 9 of 10
EDI104 DATABASE FUNDAMENTALS/SEM. SEPT 2020

3.

Figure 6 / Rajah 6

a. Transform the form in Figure 6 into unnormalized form (UNF). (5)

b. Normalized the form into third normal form (3NF). (15)

(Total : 20)

a. Tukarkan borang di Rajah 6 ke dalam bentuk tidak normal (UNF). (5)

b. Normalkan borang tersebut ke bentuk normal peringkat tiga (3NF). (15)

END OF QUESTION PAPER

Page 10 of 10
EDI104 DATABASE FUNDAMENTALS/SEM. SEPT 2020

KERTAS SOALAN TAMAT

Page 11 of 10

You might also like