# UNIVERSITI SAINS MALAYSIA. CPT111/CPM111 Principles of Programming [Prinsip Pengaturcaraan]

Size: px
Start display at page:

Transcription

1 UNIVERSITI SAINS MALAYSIA Second Semester Examination 2014/2015 Academic Session June 2015 CPT111/CPM111 Principles of Programming [Prinsip Pengaturcaraan] Duration : 2 hours [Masa : 2 jam] INSTRUCTIONS TO CANDIDATE: [ARAHAN KEPADA CALON:] Please ensure that this examination paper contains THREE questions in FOURTEEN printed pages before you begin the examination. [Sila pastikan bahawa kertas peperiksaan ini mengandungi TIGA soalan di dalam EMPAT BELAS muka surat yang bercetak sebelum anda memulakan peperiksaan ini.] Answer ALL questions. [Jawab SEMUA soalan.] You may answer the questions either in English or in Bahasa Malaysia. [Anda dibenarkan menjawab soalan sama ada dalam bahasa Inggeris atau bahasa Malaysia.] In the event of any discrepancies, the English version shall be used. [Sekiranya terdapat sebarang percanggahan pada soalan peperiksaan, versi bahasa Inggeris hendaklah diguna pakai.]...2/-

2 (a) What is a logical error? (iv) (v) Why is main function special in C++? What is the role of #include directive in C++? What is the difference between while and do-while loop? What is the difference between get() and getline()? (30/100) (b) Indicate whether the following statement is TRUE or FALSE. (iv) Hello! is a legal C++ identifier. The statement num = num + 3 is equivalent to num += 3 + num. The expression!(x>10) is equivalent to the expression x<10. The output of the following C++ code is 150. (Assume all variables are properly declared.) num = 100; while (num <=148) num = num + 5; cout << num << endl; (v) If the while expression becomes false in the middle of the while loop, the loop terminates immediately. (20/100) (c) What is the output of the following C++ code? Show the trace. count = 1; num = 15; while (count < 15) num = num - 1; count++; cout << count << << num << endl; (10/100)...3/-

3 - 3 - (d) Rewrite the following C++ code using switch/case. int selection; cin >> selection; if (selection == 1) cout << Your selection is Option 1 ; else if (selection == 2) cout << Your selection is Option 2 ; else if (selection == 3) cout << Your selection is Option 3 ; else cout << Invalid selection ; Rewrite the following C++ code using for loop. int number = 2; bool done = false; while (!done) cout << number << endl; number = number * 2; if (number >= 64) done = true; (e) Write a C++ program for the following flowchart. (30/100) start num=12 num>=0 T F stop num%>==0 F T print num num=num-1 (10/100)...4/-

4 (a) The following C++ code uses while loops. #include <iomanip> int i, j; for (i = 1; i <= 9; i++) for ( j = 1; j <= (9 - i); j++) cout << " "; for ( j = 1; j <= i; j++) cout << setw(1) << j; for ( j = (i - 1); j >= 1; j--) cout << setw(1) << j; cout << endl; What is the output of this program? What does iostream and iomanip mean? Why we need to use these two header types in this program? (20/100) (b) The following code uses while loops. cout << "Number Square of Number" << endl; counter = 1; while (counter <= 10) cout << setw(4) << counter << setw(18) << counter * counter << endl; counter++; cout << "Upper case letters are: "; chcounter = 'A'; while (chcounter <= 'Z') cout << chcounter << " "; chcounter++; cout << endl;...5/-

5 - 5 - Rewrite the C++ code using for loops. Rewrite the C++ code using do-while loops. (30/100) (c) When you are using a function in a C++ program, what are the three (3) components which must be present in the program? (10/100) (d) C++ supports three types of function parameter passing, i.e pass by value, by reference and by pointer. The program below shows an example of a function call using passing by value parameter. int calculate (int); int xy; xy = 12; cout << "original value : " << xy << endl; xy = calculate (xy); cout << "new value : " << xy << endl; int calculate (int data) for (int i = 1; i <= 5; i++) data += i; return data; Modify the program so that the function uses call by reference. Modify the program so that the function uses pointer. What is the output of the above program? (40/100)...6/-

6 (a) Consider the outline of the C++ program below: #include <fstream> const int year = 20, month = 12; int rainfall[year][month]; int m, y, max, maxy; ifstream infile; ofstream outfile; infile.open ("Rain.dat"); outfile.open ("MaxRain.dat"); infile.close(); outfile.close(); Note: For question 3(a), 3(a) and 3(a), you are required to write a suitable C++ code segments and not to re-write the whole program. Add or modify the appropriate lines so that the program test whether the files are successfully opened, and if not print error message, and exit from the program. Write C++ code that reads in data from the formatted file "Rain.dat", store in the array variable rainfall. The fail "Rain.dat" holds up to twenty years of monthly rainfall figures of Peninsular Malaysia as follow: data from month Jan Dec for year data for year data for year 20 Write C++ code that can determine the year that recorded the maximum rainfall for each month from Jan Dec, and save the result in the format below to a file designated by variable outfile: Month Year The output above implies that the highest January rainfall was in year 3, the highest February rainfall was in year 7, etc. (50/100)...7/-

7 - 7 - (b) What is the output of each of the following programs? char string1[] = " How are you?"; cout << "string is : " << string1 << endl; for (int i = 0; string1[i]!= '\0'; i++) cout << string1[i] << "_"; int ch = 100; int *ptr = &ch; cout << "Value stored at pointer ptr is : "; cout << *ptr << endl; int array [3][4] = 1,2,3,4,2,3,4,5,3,4,5,6; cout << "Array contains:" << endl; for (int i = 0; i < 3; i++) for (int j = 0; j < 4; j++) cout << array[i][j] + i + j << " "; cout << endl; (50/100)...8/-

8 KERTAS SOALAN DALAM VERSI BAHASA MALAYSIA (a) Apakah maksud kesalahan logik? (iv) (v) Kenapa fungsi main adalah istimewa dalam C++? Apakah tugas arahan #include dalam C++? Apakah perbezaan di antara gegelung while dan do-while? Apakah perbezaan antara get() and getline()? (30/100) (b) Nyatakan sama ada kenyataan berikut BETUL atau SALAH. (iv) Hello! ialah pengecam C++ yang sahih. Kenyataan num = num + 3 adalah bersamaan dengan kenyataan num += 3 + num. Ungkapan!(x>10) adalah bersamaan dengan ungkapan x<10. Output bagi kod C++ berikut ialah 150. (Andaikan semua pemboleh ubah sudah diisytiharkan.) num = 100; while (num <=148) num = num + 5; cout << num << endl; (v) Jika ungkapan while menjadi palsu di pertengahan gegelung while, gegelung itu akan tamat dengan serta merta. (20/100) (c) Apakah output bagi kod C++ berikut? Tunjukkan surihan. count = 1; num = 15; while (count < 15) num = num - 1; count++; cout << count << << num << endl; (10/100)...9/-

9 - 9 - (d) Tulis kembali kod C++ berikut dengan menggunakan switch/case. int selection; cin >> selection; if (selection == 1) cout << Your selection is Option 1 ; else if (selection == 2) cout << Your selection is Option 2 ; else if (selection == 3) cout << Your selection is Option 3 ; else cout << Invalid selection ; Tulis kembali kod C++ di bawah dengan menggunakan gegelung for. int number = 2; bool done = false; while (!done) cout << number << endl; number = number * 2; if (number >= 64) done = true; (30/100)...10/-

10 (e) Tuliskan satu atur cara C++ untuk carta alir berikut. start num=12 num>=0 T F stop num%>==0 F T print num num=num-1 (10/100) 2. (a) Kod C++ berikut mengguna gegelung while. #include <iomanip> int i, j; for (i = 1; i <= 9; i++) for ( j = 1; j <= (9 - i); j++) cout << " "; for ( j = 1; j <= i; j++) cout << setw(1) << j; for ( j = (i - 1); j >= 1; j--) cout << setw(1) << j; cout << endl;...11/-

11 Apakah output program C++ ini? Apakah maksud iostream dan iomanip? Mengapa kita perlu menggunakan kedua-dua jenis pengepala/pengatas ini dalam program ini? (20/100) (b) Kod berikut menggunakan gegelung while. cout << "Number Square of Number" << endl; counter = 1; while (counter <= 10) cout << setw(4) << counter << setw(18) << counter * counter << endl; counter++; cout << "Upper case letters are: "; chcounter = 'A'; while (chcounter <= 'Z') cout << chcounter << " "; chcounter++; cout << endl; Tulis kembali kod C++ ini menggunakan gegelung for. Tulis kembali kod C++ ini menggunakan gegelung do-while. (30/100) (c) Apabila anda mengguna fungsi di dalam sesuatu atur cara C++, apakah tiga (3) komponen yang perlu wujud di dalam atur cara tersebut? (10/100)...12/-

12 (d) C++ menyokong tiga jenis penghantaran parameter, iaitu penghantaran melalui nilai, rujukan dan penunjuk. Atur cara berikut menunjukkan satu contoh panggilan fungsi yang menggunakan penghantaran parameter melalui nilai. int calculate (int); int xy; xy = 12; cout << "original value : " << xy << endl; xy = calculate (xy); cout << "new value : " << xy << endl; int calculate (int data) for (int i = 1; i <= 5; i++) data += i; return data; Ubahsuai atur cara tersebut supaya fungsi menggunakan panggilan melalui rujukan. Ubahsuai atur cara tersebut supaya fungsi menggunakan penunjuk. Apakah output program tersebut? (40/100) 3. (a) Pertimbangkan garis kasar atur cara C++ di bawah: #include <fstream> const int year = 20, month = 12; int rainfall[year][month]; int m, y, max, maxy; ifstream infile; ofstream outfile; infile.open ("Rain.dat"); outfile.open ("MaxRain.dat"); infile.close(); outfile.close();...13/-

13 Nota: Untuk soalan 3(a), 3(a) and 3(a), anda dikehendaki menulis cebisan kod C++ yang bersesuaian dan tidak menulis keseluruhan atur cara. Tambah atau ubah suai baris-baris berkenaan supaya atur cara berkenaan menyemak sama ada fail-fail dibuka dengan jayanya, dan jika tidak cetak mesej ralat, dan keluar dari atur cara. Tulis kod C++ untuk baca data dari fail Rain.dat yang berformat, dan simpan di dalam pemboleh ubah tatasusunan bernama rainfall. Fail Rain.dat menyimpan nilai-nilai hujan bulanan selama dua puluh tahun untuk Semenanjung Malaysia seperti berikut: data from month Jan Dec for year data for year data for year 20 Tulis kod C++ yang boleh menentukan tahun yang mencatat hujan maksimum untuk setiap bulan dari Jan Dec, dan simpan keputusan tersebut menggunakan format di bawah ke suatu fail yang dirujuk oleh pemboleh ubah outfile. Month Year Output di atas menunjukkan hujan maksimum untuk bulan Januari ialah pada tahun 3, hujan maksimum untuk bulan Februari ialah pada tahun 7, dan seterusnya. (50/100)...14/-

14 (b) Apakah output untuk setiap atur cara berikut? char string1[] = " How are you?"; cout << "string is : " << string1 << endl; for (int i = 0; string1[i]!= '\0'; i++) cout << string1[i] << "_"; int ch = 100; int * ptr = &ch; cout << "Value stored at pointer ptr is : "; cout << *ptr << endl; int array [3][4] = 1,2,3,4,2,3,4,5,3,4,5,6; cout << "Array contains:" << endl; for (int i = 0; i < 3; i++) for (int j = 0; j < 4; j++) cout << array[i][j] + i + j << " "; cout << endl; (50/100) - ooooooo -

### CPT111/CPM111 Principles of Programming [Prinsip Pengaturcaraan]

Second Semester Examination 2016/2017 Academic Session June 2017 CPT111/CPM111 Principles of Programming [Prinsip Pengaturcaraan] Duration : 2 hours [Masa : 2 jam] INSTRUCTIONS TO CANDIDATE: [ARAHAN KEPADA

### UNIVERSITI SAINS MALAYSIA. CPT113 Programming Methodology & Data Structures [Metodologi Pengaturcaraan & Struktur Data]

UNIVERSITI SAINS MALAYSIA First Semester Examination 2016/2017 Academic Session December 2016 / January 2017 CPT113 Programming Methodology & Data Structures [Metodologi Pengaturcaraan & Struktur Data]

### UNIVERSITI SAINS MALAYSIA. CST333 Distributed & Grid Computing [Perkomputeran Teragih & Grid]

UNIVERSITI SAINS MALAYSIA First Semester Examination 2014/2015 Academic Session December 2014/January 2015 CST333 Distributed & Grid Computing [Perkomputeran Teragih & Grid] Duration : 2 hours [Masa :

### UNIVERSITI SAINS MALAYSIA. CPT111 Principles of Programming [Prinsip Pengaturcaraan]

UNIVERSITI SAINS MALAYSIA First Semester Examination 2014/2015 Academic Session December 2014/January 2015 CPT111 Principles of Programming [Prinsip Pengaturcaraan] Duration : 2 hours [Masa : 2 jam] INSTRUCTIONS

### UNIVERSITI SAINS MALAYSIA. CPT211-CPM313 Programming Language Concepts & Paradigm [Konsep & Paradigma Bahasa Pengaturcaraan]

UNIVERSITI SAINS MALAYSIA Second Semester Examination 2015/2016 Academic Session June 2016 CPT211-CPM313 Programming Language Concepts & Paradigm [Konsep & Paradigma Bahasa Pengaturcaraan] Duration : 2

### UNIVERSITI SAINS MALAYSIA. Peperiksaan Semester Pertama Sidang Akademik 2003/2004. September/Oktober 2003

UNIVERSITI SAINS MALAYSIA Peperiksaan Semester Pertama Sidang Akademik 2003/2004 September/Oktober 2003 EEE 348E - PENGANTAR REKABENTUK LITAR BERSEPADU Masa: 3jam ARAHAN KEPADA CALON: Sila pastikan bahawa

### UNIVERSITI SAINS MALAYSIA

UNIVERSITI SAINS MALAYSIA Peperiksaan Semester Pertama Sidang Akademik 2004/2005 Oktober 2004 CPT103/CPM211- Struktur Data & Paradigma Pengaturcaraan Masa : 2 jam ARAHAN KEPADA CALON : Sila pastikan bahawa

### UNIVERSITI SAINS MALAYSIA. CST232 Operating Systems [Sistem Pengendalian]

UNIVERSITI SAINS MALAYSIA First Semester Examination 2014/2015 Academic Session December 2014/January 2015 CST232 Operating Systems [Sistem Pengendalian] Duration : 2 hours [Masa : 2 jam] INSTRUCTIONS

### UNIVERSITI SAINS MALAYSIA. CST332 Internet Protocols. Architecture & Routing [Protokol, Seni Bina & Penghalaan Internet]

UNIVERSITI SAINS MALAYSIA First Semester Examination 2016/2017 Academic Session December 2016 / January 2017 CST332 Internet Protocols. Architecture & Routing [Protokol, Seni Bina & Penghalaan Internet]

### UNIVERSITI SAINS MALAYSIA. CMT322/CMM323 Web Engineering & Technologies [Kejuruteraan & Teknologi Web]

UNIVERSITI SAINS MALAYSIA First Semester Examination 2014/2015 Academic Session December 2014/January 2015 CMT322/CMM323 Web Engineering & Technologies [Kejuruteraan & Teknologi Web] Duration : 2 hours

### UNIVERSITI SAINS MALAYSIA. CST131 Computer Organisation [Organisasi Komputer]

UNIVERSITI SAINS MALAYSIA First Semester Examination 2015/2016 Academic Session December 2015/January 2016 CST131 Computer Organisation [Organisasi Komputer] Duration : 2 hours [Masa : 2 jam] INSTRUCTIONS

### UNIVERSITI SAINS MALAYSIA. CST331 Principles of Parallel & Distributed Programming [Prinsip Pengaturcaraan Selari & Teragih]

UNIVERSITI SAINS MALAYSIA First Semester Examination 2011/2012 Academic Session January 2012 CST331 Principles of Parallel & Distributed Programming [Prinsip Pengaturcaraan Selari & Teragih] Duration :

### INSTRUCTION: This section consists of FOUR (4) questions. Answer ALL questions. ARAHAN: Bahagian ini mengandungi EMPAT (4) soalan. Jawab SEMUA soalan.

SECTION B: 70 MARKS BAHAGIAN B: 70 MARKAH INSTRUCTION: This section consists of FOUR (4) questions. Answer ALL questions. ARAHAN: Bahagian ini mengandungi EMPAT (4) soalan. Jawab SEMUA soalan. QUESTION

### UNIVERSITI SAINS MALAYSIA. CPT344 Computer Vision & Image Processing [Penglihatan Komputer & Pemprosesan Imej]

UNIVERSITI SAINS MALAYSIA First Semester Examination 2014/2015 Academic Session December 2014/January 2015 CPT344 Computer Vision & Image Processing [Penglihatan Komputer & Pemprosesan Imej] Duration :

### MSS 317 Coding Theory [Teori Pengekodan]

` UNIVERSITI SAINS MALAYSIA First Semester Examination 01/01 Academic Session January 01 MSS 17 Coding Theory [Teori Pengekodan] Duration : hours [Masa : jam] Please check that this examination paper consists

### UNIVERSITI SAINS MALAYSIA. CCS521 Advanced Distributed Systems Concepts and Design [Konsep dan Reka Bentuk Sistem Teragih Maju]

UNIVERSITI SAINS MALAYSIA First Semester Examination 2011/2012 Academic Session January 2012 CCS521 Advanced Distributed Systems Concepts and Design [Konsep dan Reka Bentuk Sistem Teragih Maju] Duration

### INSTRUCTION: This section consists of TWO (2) structured questions. Answer ALL questions.

SECTION B : 55 MARKS BAHAGIAN B : 55 MARKAH INSTRUCTION: This section consists of TWO (2) structured questions. Answer ALL questions. ARAHAN: Bahagian ini mengandungi DUA (2) soalan berstruktur. Jawab

### UNIVERSITI SAINS MALAYSIA. CST131 Computer Organisation [Organisasi Komputer]

UNIVERSITI SAINS MALAYSIA First Semester Examination 2014/2015 Academic Session December 2014/January 2015 CST131 Computer Organisation [Organisasi Komputer] Duration : 2 hours [Masa : 2 jam] INSTRUCTIONS

### MAT181 Programming For Scientific Applications [Pengaturcaraan Untuk Penggunaan Sains]

UNIVERSITI SAINS MALAYSIA Second Semester Examination 016/017 Academic Session June 017 MAT181 Programming For Scientific Applications [Pengaturcaraan Untuk Penggunaan Sains] Duration : 3 hours [Masa :

### UNIVERSITI SAINS MALAYSIA. CPT103/ CPM211 Struktur Data & Paradigma Pengaturcaraan

UNIVERSITI SAINS MALAYSIA Peperiksaan Kursus Semasa Cuti Panjang Sidang Akademik 2001/2002 April 2002 CPT103/ CPM211 Struktur Data & Paradigma Pengaturcaraan Masa : 3 jam ARAHAN KEPADA CALON: Sila pastikan

### MAT 181 Programming for Scientific Applications [Pengaturcaraan untuk Penggunaan Sains]

UNIVERSITI SAINS MALAYSIA Second Semester Examination 2015/2016 Academic Session June 2016 MAT 181 Programming for Scientific Applications [Pengaturcaraan untuk Penggunaan Sains] Duration 3 hours [Masa

### UNIVERSITI SAINS MALAYSIA. CST131 Computer Organisation [Organisasi Komputer]

UNIVERSITI SAINS MALAYSIA First Semester Examination 2016/2017 Academic Session December 2016 / January 2017 CST131 Computer Organisation [Organisasi Komputer] Duration : 2 hours [Masa : 2 jam] INSTRUCTIONS

### UNIVERSITI SAINS MALAYSIA. CCS522 Advanced Data Communication and Computer Networks [Rangkaian Komputer dan Komunikasi Data Lanjutan]

UNIVERSITI SAINS MALAYSIA First Semester Examination 2014/2015 Academic Session December 2014/January 2015 CCS522 Advanced Data Communication and Computer Networks [Rangkaian Komputer dan Komunikasi Data

### UNIVERSITI SAINS MALAYSIA. CPT101 Prinsip-Prinsip Pengaturcaraan

UNIVERSITI SAINS MALAYSIA Peperiksaan Kursus Semasa Cuti Panjang Sidang Akademik 2001/2002 April 2002 CPT101 Prinsip-Prinsip Pengaturcaraan Masa : 3 jam ARAHAN KEPADA CALON: Sila pastikan bahawa kertas

### MSS 318 Discrete Mathematics [Matematik Diskret]

UNIVERSITI SAINS MALAYSIA Second Semester Examination 2009/2010 Academic Session April/May 2010 MSS 318 Discrete Mathematics [Matematik Diskret] Duration : 3 hours [Masa : 3 jam] Please check that this

### UNIVERSITI SAINS MALAYSIA. CCS522 Advanced Data Communication & Computer Networks [Rangkaian Komputer & Komunikasi Data Lanjutan]

UNIVERSITI SAINS MALAYSIA First Semester Examination 2015/2016 Academic Session December 2015/January 2016 CCS522 Advanced Data Communication & Computer Networks [Rangkaian Komputer & Komunikasi Data Lanjutan]

### UNIVERSITI SAINS MALAYSIA. CST331 Principles of Parallel & Distributed Programming [Prinsip Pengaturcaraan Selari & Teragih]

UNIVERSITI SAINS MALAYSIA First Semester Examination 2015/2016 Academic Session December 2015/January 2016 CST331 Principles of Parallel & Distributed Programming [Prinsip Pengaturcaraan Selari & Teragih]

### ...a- JEE ELEKTRONIK DIGIT II. UNlVERSlTl SAINS MALAYSIA. Peperiksaan Semester Kedua Sidang Akademik FebruarVMac 2003.

UNlVERSlTl SAINS MALAYSIA Peperiksaan Semester Kedua Sidang Akademik 200212003 FebruarVMac 2003 JEE 230 - ELEKTRONIK DIGIT II Masa : 3 jam ARAHAN KEPADA CALON: Sila pastikan bahawa kertas peperiksaan ini

### UNIVERSITI SAINS MALAYSIA. CST334 Network Monitoring & Security [Pengawasan & Keselamatan Rangkaian]

UNIVERSITI SAINS MALAYSIA First Semester Examination 2014/2015 Academic Session December 2014/January 2015 CST334 Network Monitoring & Security [Pengawasan & Keselamatan Rangkaian] Duration : 2 hours [Masa

### UNIVERSITI SAINS MALAYSIA. CPT101 Prinsip-Prinsip Pengaturcaraan

UNIVERSITI SAINS MALAYSIA Peperiksaan Semester Pertama Sidang Akademik 2003/2004 September/Oktober 2003 CPT101 Prinsip-Prinsip Pengaturcaraan Masa : 3 jam ARAHAN KEPADA CALON: Sila pastikan bahawa kertas

### CPT211/CPM313 Programming Language Concepts & Paradigms [Konsep & Paradigma Bahasa Pengaturcaraan]

Second Semester Examination 2016/2017 Academic Session June 2017 CPT211/CPM313 Programming Language Concepts & Paradigms [Konsep & Paradigma Bahasa Pengaturcaraan] Duration : 2 hours [Masa : 2 jam] INSTRUCTIONS

### EEE 428 SISTEM KOMPUTER

UNIVERSITI SAINS MALAYSIA Peperiksaan Semester Pertama Sidang Akademik 2007/2008 Oktober/November 2007 EEE 428 SISTEM KOMPUTER Masa : 3 jam ARAHAN KEPADA CALON: Sila pastikan bahawa kertas peperiksaan

### MAT 181 Programming For Scientific Applications [Pengaturcaraan Untuk Penggunaan Sains]

UNIVERSITI SAINS MALAYSIA First Semester Examination 2015/2016 Academic Session December 2015/January 2016 MAT 181 Programming For Scientific Applications [Pengaturcaraan Untuk Penggunaan Sains] Duration

### MAT 181 Programming For Scientific Applications [Pengaturcaraan Untuk Penggunaan Sains]

UNIVERSITI SAINS MALAYSIA Second Semester Examination 2009/2010 Academic Session April/May 2010 MAT 181 Programming For Scientific Applications [Pengaturcaraan Untuk Penggunaan Sains] Duration : 3 hours

### UNIVERSITI SAINS MALAYSIA. CPT101 Prinsip-Prinsip Pengaturcaraan

UNIVERSITI SAINS MALAYSIA Peperiksaan Semester Pertama Sidang Akademik 2004/2005 Oktober 2004 CPT101 Prinsip-Prinsip Pengaturcaraan Masa : 2 jam ARAHAN KEPADA CALON: Sila pastikan bahawa kertas peperiksaan

### UNIVERSITI SAINS MALAYSIA. CPT103/CPM211 Struktur Data & Paradigma Pengaturcaraan

UNIVERSITI SAINS MALAYSIA Peperiksaan Semester Pertama Sidang Akademik 2001/2002 September 2001 CPT103/CPM211 Struktur Data & Paradigma Pengaturcaraan Masa : 3 jam ARAHAN KEPADA CALON: Sila pastikan bahawa

### EEE348 INTRODUCTION TO INTEGRATED CIRCUIT DESIGN (PENGANTAR REKABENTUK LITAR BERSEPADU)

Second Semester Examination 2017/2018 Academic Session May/June 2018 INTRODUCTION TO INTEGRATED CIRCUIT DESIGN (PENGANTAR REKABENTUK LITAR BERSEPADU) Duration : 3 hours (Masa : 3 jam) Please ensure that

### UNIVERSITI SAINS MALAYSIA. CPT103 Struktur Data & Paradigma Pengaturcaraan

UNIVERSITI SAINS MALAYSIA Peperiksaan Kursus Semasa Cuti Panjang Sidang Akademik 2002/2003 April 2003 CPT103 Struktur Data & Paradigma Pengaturcaraan Masa : 3 jam ARAHAN KEPADA CALON: Sila pastikan bahawa

### CPT212 Design & Analysis of Algorithms [Reka Bentuk & Analisis Algoritma]

Second Semester Examination 2016/2017 Academic Session June 2017 CPT212 Design & Analysis of Algorithms [Reka Bentuk & Analisis Algoritma] Duration : 2 hours [Masa : 2 jam] INSTRUCTIONS TO CANDIDATE: [ARAHAN

### UNIVERSITI MALAYSIA PERLIS. DNT 126 Basic Computer Programming [Asas Pengaturcaraan Komputer]

UNIVERSITI MALAYSIA PERLIS Peperiksaan Semester Kedua Sidang Akademik 2015/2016 March 2016 DNT 126 Basic Computer Programming [Asas Pengaturcaraan Komputer] Masa: 3 jam Please make sure that this question

### EEE 348 PENGANTAR REKABENTUK LITAR BERSEPADU

UNIVERSITI SAINS MALAYSIA Peperiksaan Semester Pertama Sidang Akademik 2007/2008 Oktober/November 2007 EEE 348 PENGANTAR REKABENTUK LITAR BERSEPADU Masa : 3 Jam Sila pastikan kertas peperiksaan ini mengandungi

### INSTRUCTION: This section consists of TWO (2) structured questions. Answer ALL questions.

SECTION B: 55 MARKS BAHAGIAN B: 55 MARKAH INSTRUCTION: This section consists of TWO (2) structured questions. Answer ALL questions. ARAHAN: Bahagian ini mengandungi DUA (2) soalan berstruktur. Jawab SEMUA

### UNIVERSITI SAINS MALAYSIA. CST234 Network Programming [Pengaturcaraan Rangkaian]

UNIVERSITI SAINS MALAYSIA Second Semester Examination 2015/2016 Academic Session June 2016 CST234 Network Programming [Pengaturcaraan Rangkaian] Duration : 2 hours [Masa : 2 jam] INSTRUCTIONS TO CANDIDATE:

### UNIVERSITI SAINS MALAYSIA. CMT324 Computer Graphics & Visual Computing [Grafik Komputer & Perkomputeran Visual]

UNIVERSITI SAINS MALAYSIA First Semester Examination 2015/2016 Academic Session December 2015/January 2016 CMT324 Computer Graphics & Visual Computing [Grafik Komputer & Perkomputeran Visual] Duration

### UNIVERSITI SAINS MALAYSIA. CMT422 Multimedia Information Systems & Management [Sistem & Pengurusan Maklumat Multimedia]

UNIVERSITI SAINS MALAYSIA Second Semester Examination 2014/2015 Academic Session June 2015 CMT422 Multimedia Information Systems & Management [Sistem & Pengurusan Maklumat Multimedia] Duration : 2 hours

### INSTRUCTION: This section consists of TWO (2) structured questions. Answer ALL questions.

SECTION B : 50 MARKS BAHAGIAN B : 50 MARKAH INSTRUCTION: This section consists of TWO (2) structured questions. Answer ALL questions. ARAHAN: Bahagian ini mengandungi DUA (2) soalan berstruktur. Jawab

### INSTRUCTION: This section consists of FOUR (4) structured questions. Answer ALL questions.

SECTION A: 60 MARKS BAHAGIAN A: 60 MARKAH INSTRUCTION: This section consists of FOUR (4) structured questions. Answer ALL questions. ARAHAN: Bahagian ini mengandungi EMPAT (4) soalan berstruktur. Jawab

### INSTRUCTION: This section consists of TWO (2) structured questions. Answer ALL questions.

SECTION B : 55 MARKS BAHAGIAN B : 55 MARKAH INSTRUCTION: This section consists of TWO (2) structured questions. Answer ALL questions. ARAHAN: Bahagian ini mengandungi TWO (2) soalan berstruktur. Jawab

### UNIVERSITI SAINS MALAYSIA. CMT224/CMM221 Multimedia Systems [Sistem Multimedia]

UNIVERSITI SAINS MALAYSIA Second Semester Examination 2015/2016 Academic Session June 2016 CMT224/CMM221 Multimedia Systems [Sistem Multimedia] Duration : 2 hours [Masa : 2 jam] INSTRUCTIONS TO CANDIDATE:

### MANAGE COURSE RESOURCES LABEL TEXT PAGE URL BOOK FILE FOLDER IMS CONTENT PACKAGE

MANAGE COURSE RESOURCES LABEL TEXT PAGE URL BOOK FILE FOLDER IMS CONTENT PACKAGE Edit summary Edit tajuk Ke kanan Ke atas/bawah NOTA: Klik untuk sembunyikan isi kandungan. Klik untuk padam/menghapus isi

### MAT 181 Programming For Scientific Applications [Pengaturcaraan Untuk Penggunaan Sains]

UNIVERSITI SAINS MALAYSIA First Semester Examination 2009/2010 Academic Session November 2009 MAT 181 Programming For Scientific Applications [Pengaturcaraan Untuk Penggunaan Sains] Duration : 3 hours

### UNIVERSITI SAINS MALAYSIA. CST231/CSM331 Data Communications & Networks [Komunikasi Data & Rangkaian]

UNIVERSITI SAINS MALAYSIA First Semester Examination 2015/2016 Academic Session December 2015/January 2016 CST231/CSM331 Data Communications & Networks [Komunikasi Data & Rangkaian] Duration : 2 hours

### UNIVERSITI SAINS MALAYSIA. CCS513 Computer Vision and Image Analysis [Penglihatan Komputer dan Analisis Imej]

UNIVERSITI SAINS MALAYSIA First Semester Examination 204/205 Academic Session December 204/January 205 CCS53 Computer Vision and Image Analysis [Penglihatan Komputer dan Analisis Ime] Duration : 2 hours

### PART A SULIT (EKT 221) BAHAGIAN A. Answer ALL questions. Question 1. a) Briefly explain the concept of Clock Gating.

PART A BAHAGIAN A Answer ALL questions. Jawab SEMUA soalan. Question Soalan a) Briefly explain the concept of Clock Gating. [Terangkan secara ringkas konsep Selakan Denyut.] [2 Marks/Markah] b) Define

### UNIVERSITI SAINS MALAYSIA. CCS523 Computer Security & Cryptography [Keselamatan Komputer & Kriptografi]

UNIVERSITI SAINS MALAYSIA First Semester Examination 2016/2017 Academic Session December 2016 / January 2017 CCS523 Computer Security & Cryptography [Keselamatan Komputer & Kriptografi] Duration : 2 hours

### PANDUAN PENGGUNA (SUPPLIER) MAINTAIN CERTIFICATES/SUPPLIER DETAILS SUPPLIER RELATIONSHIP MANAGEMENT SUPPLY CHAIN MANAGEMENT SYSTEM (SCMS)

PANDUAN PENGGUNA (SUPPLIER) MAINTAIN CERTIFICATES/SUPPLIER DETAILS SUPPLIER RELATIONSHIP MANAGEMENT SUPPLY CHAIN MANAGEMENT SYSTEM (SCMS) DISEDIAKAN OLEH: SUPPLY CHAIN MANAGEMENT (SCM) BAHAGIAN ICT PROCESS

### UNIVERSITI SAINS MALAYSIA. CIT502 Pengaturcaraan dan Kejuruteraan Perisian Berorientasi Objek

UNIVERSITI SAINS MALAYSIA Peperiksaan Semester Pertama Sidang Akademik 2002/2003 September 2002 CIT502 Pengaturcaraan dan Kejuruteraan Perisian Berorientasi Objek Masa : 3 jam ARAHAN KEPADA CALON: Sila

### Manual Pengguna. PCN Online Service Fulfillment System

System 1 Subjek Muka Surat 1) CARTA ALIR SISTEM 2 2) PERMOHONAN OLEH AGENSI 3 3) PENGESAHAN PERMOHONAN OLEH MAMPU 8 4) LAMPIRAN 13 2 Carta alir sistem 3 PERMOHONAN OLEH AGENSI 4 Membuat permohonan baru

### INSTRUCTION: This section consists of TWO (2) short answer and structured essay questions. Answer ALL questions.

SECTION B : 55 MARKS BAHAGIAN B : 55 MARKAH INSTRUCTION: This section consists of TWO (2) short answer and structured essay questions. Answer ALL questions. ARAHAN: Bahagian ini mengandungi DUA (2) soalan

### ssk 2023 asas komunikasi dan rangkaian TOPIK 4.0 PENGALAMATAN RANGKAIAN Minggu 11

ssk 2023 asas komunikasi dan rangkaian TOPIK 4.0 PENGALAMATAN RANGKAIAN Minggu 11 PENILAIAN & KULIAH Kuliah Tugasan Ujian Teori Ujian Amali Isi kandungan 4.8 Menunjukkan asas pengiraan o Subnet Mask o

### UNIVERSITI SAINS MALAYSIA. CPT212 Design & Analysis of Algorithms [Reka Bentuk & Analisis Algoritma]

UNIVERSITI SAINS MALAYSIA Second Semester Examination 2015/2016 Academic Session June 2016 CPT212 Design & Analysis of Algorithms [Reka Bentuk & Analisis Algoritma] Duration : 2 hours [Masa : 2 jam] INSTRUCTIONS

### MICROSOFT EXCEL. Membina Hamparan Elektronik Fungsi Hamparan Elektronik

MICROSOFT EXCEL Membina Hamparan Elektronik Fungsi Hamparan Elektronik Microsoft Excel 2010 Kandungan Penggunaan Asas Excel Memformat Sel, Lembaran dan Buku Kerja (Work Book) Penggunaan Asas Excel Fail

### UNIVERSITI SAINS MALAYSIA. CPT341 Software Design & Architecture [Reka Bentuk & Seni Bina Perisian]

UNIVERSITI SAINS MALAYSIA First Semester Examination 2015/2016 Academic Session December 2015/January 2016 CPT341 Software Design & Architecture [Reka Bentuk & Seni Bina Perisian] Duration : 2 hours [Masa

### CCS592 Advanced Algorithms and Complexity [Algoritma Lanjutan & Kekompleksan]

Second Semester Examination 2016/2017 Academic Session June 2017 CCS592 Advanced Algorithms and Complexity [Algoritma Lanutan & Kekompleksan] Duration : 2 hours [Masa : 2 am] INSTRUCTIONS TO CANDIDATE:

### PANDUAN PENGGUNA (SUPPLIER) e-purchase ORDER FOR SERVICES

PANDUAN PENGGUNA (SUPPLIER) e-purchase ORDER FOR SERVICES SUPPLIER RELATIONSHIP MANAGEMENT SUPPLY CHAIN MANAGEMENT SYSTEM (SCMS) DISEDIAKAN OLEH: UNIT SUPPLY CHAIN MANAGEMENT (SCM) JABATAN SOURCING CONTROLLER

### INSTRUCTION: This section consists of TWO (2) questions. Answer ALL questions. ARAHAN: Bahagian ini mengandungi DUA (2) soalan. Jawab SEMUA soalan.

SECTION B: 55 MARKS BAHAGIAN B: 55 MARKAH INSTRUCTION: This section consists of TWO (2) questions. Answer ALL questions. ARAHAN: Bahagian ini mengandungi DUA (2) soalan. Jawab SEMUA soalan. QUESTION 1

### CST432 Microprocessors & Embedded Systems [Mikropemproses & Sistem Terbenam]

Second Semester Examination 2016/2017 Academic Session June 2017 CST432 Microprocessors & Embedded Systems [Mikropemproses & Sistem Terbenam] Duration : 2 hours [Masa : 2 jam] INSTRUCTIONS TO CANDIDATE:

### UNIVERSITI SAINS MALAYSIA. CPT113/CPM213 Programming Methodology & Data Structures [Metodologi Pengaturcaraan & Struktur Data]

UNIVERSITI SAINS MALAYSIA Second Semester Examination 2014/2015 Academic Session June 2015 CPT113/CPM213 Programming Methodology & Data Structures [Metodologi Pengaturcaraan & Struktur Data] Duration :

### Pengenalan Sistem Maklumat Dalam Pendidikan

Pengenalan Sistem Maklumat Dalam Pendidikan 1 RELATIONSHIP & QUERY DALAM MICROSOFT ACCESS Kandungan Definisi Relationship (Hubungan) Jenis Relationship Membina Relationship Definisi Query dan Fungsi Query

### INSTRUCTION: This section consists of FOUR (4) structured questions. Answer ALL questions.

SECTION B: 60 MARKS BAHAGIAN B: 60 MARKAH INSTRUCTION: This section consists of FOUR (4) structured questions. Answer ALL questions. ARAHAN: Bahagian ini mengandungi EMPAT (4) soalan berstruktur. Jawab

### INSTRUCTION: This section consists of FOUR (4) structured questions. Answer ALL questions.

SECTION B : 60 MARKS BAHAGIAN B : 60 MARKAH INSTRUCTION: This section consists of FOUR (4) structured questions. Answer ALL questions. ARAHAN: Bahagian ini mengandungi EMPAT (4) soalan berstruktur. Jawab

### PANDUAN PENGGUNA (SUPPLIER) MAINTAIN CERTIFICATES/SUPPLIER DETAILS SUPPLIER RELATIONSHIP MANAGEMENT SUPPLY CHAIN MANAGEMENT SYSTEM (SCMS)

PANDUAN PENGGUNA (SUPPLIER) MAINTAIN CERTIFICATES/SUPPLIER DETAILS SUPPLIER RELATIONSHIP MANAGEMENT SUPPLY CHAIN MANAGEMENT SYSTEM (SCMS) DISEDIAKAN OLEH: SUPPLY CHAIN MANAGEMENT (SCM) BAHAGIAN ICT PROCESS

### MULTIMEDIA COLLEGE JALAN GURNEY KIRI KUALA LUMPUR

STUDENT IDENTIFICATION NO MULTIMEDIA COLLEGE JALAN GURNEY KIRI 54100 KUALA LUMPUR FIRST TRIMESTER FINAL EXAMINATION, 2013 SESSION PSD2133 INTRODUCTION TO PROGRAMMING 1 DSEW-E-F-1/13, DMTW-E-F-1/12 24 SEPTEMBER

### MULTIMEDIA COLLEGE JALAN GURNEY KIRI KUALA LUMPUR

STUDENT IDENTIFICATION NO MULTIMEDIA COLLEGE JALAN GURNEY KIRI 54100 KUALA LUMPUR THIRD, FOURTH, EIGHTH TRIMESTER FINAL EXAMINATION, 2013 SESSION MMD2193 MULTIMEDIA AUTHORING I DMTW-E-F-2/12, DMTW-E-F-1/12,

### UNIVERSITI SAINS MALAYSIA. CST432 Microprocessors & Embedded Systems [Mikropemproses & Sistem Terbenam]

UNIVERSITI SAINS MALAYSIA Second Semester Examination 2015/2016 Academic Session June 2016 CST432 Microprocessors & Embedded Systems [Mikropemproses & Sistem Terbenam] Duration : 2 hours [Masa : 2 jam]

### Lab 4 : Sorting Techniques

Lab 4 : Sorting Techniques Objectives Write source codes for the implementation of simple sort algorithms : Bubble Sort, Insertion Sort and Selection Sort. [Tulis aturcara dengan melaksanakan isihan mudah

### UNIVERSITI SAINS MALAYSIA EEE 355 ROBOT DAN PENGAUTOMATAN

UNIVERSITI SAINS MALAYSIA Peperiksaan Semester Kedua Sidang Akademik 2011/2012 Jun 2012 EEE 355 ROBOT DAN PENGAUTOMATAN Masa : 3 Jam Sila pastikan bahawa kertas peperiksaan ini mengandungi TIGA BELAS muka

### INSTRUCTION: This section consists of TWO (2) structured questions. Answer ALL questions.

SECTION B : 50 MARKS BAHAGIAN B : 50 MARKAH INSTRUCTION: This section consists of TWO (2) structured questions. Answer ALL questions. ARAHAN: Bahagian ini mengandungi DUA (2) soalan berstruktur. Jawab

### COMBINING TABLES. Akademi Audit Negara. CAATs ASAS ACL / 1

COMBINING TABLES CAATs ASAS ACL / 1 OBJEKTIF MODUL Mempelajari kaedah menggabung dan menghubungkan dua atau lebih table bagi mencapai objektif Audit. Mempelajari kaedah menggunakan maklumat yang sedia

### Registration of Supplier (ROS) TM Supplier Registration Renewal via SUS Portal (Pembaharuan Pendaftaran Pembekal TM melalui SUS Portal)

TM SUPPLIER REGISTRATION RENEWAL VIA SUPPLIER SELF-SERVICE (SUS) PORTAL USER GUIDE PEMBAHARUAN PENDAFTARAN PEMBEKAL TM MELALUI SUPPLIER SELF-SERVICE (SUS) PORTAL PANDUAN PENGGUNA Getting Started Step by

### CST234 Network Programming [Pengaturcaraan Rangkaian]

Second Semester Examination 2016/2017 Academic Session June 2017 CST234 Network Programming [Pengaturcaraan Rangkaian] Duration : 2 hours [Masa : 2 jam] INSTRUCTIONS TO CANDIDATE: [ARAHAN KEPADA CALON:]

### MULTIMEDIA COLLEGE JALAN GURNEY KIRI KUALA LUMPUR

MULTIMEDIA COLLEGE JALAN GURNEY KIRI 54100 KUALA LUMPUR FIRST SEMESTER EXAMINATION, 2013 SESSION DMGW-E-F 3/12, DMGA-E-F 3/12, DMGQ-E-F 3/12, DMGS-E-F 3/12 ITC2093 OFFICE AUTOMATION ROZITA BINTI YAAKOB,

### Registration of Supplier (ROS) TM Supplier Registration Renewal via SUS Portal (Pembaharuan Pendaftaran Pembekal TM melalui SUS Portal)

TM SUPPLIER REGISTRATION RENEWAL VIA SUPPLIER SELF-SERVICE (SUS) PORTAL USER GUIDE PEMBAHARUAN PENDAFTARAN PEMBEKAL TM MELALUI SUPPLIER SELF-SERVICE (SUS) PORTAL PANDUAN PENGGUNA Getting Started Step by

### INSTRUCTION: This section consists of TWO (2) questions. Answer ALL questions. ARAHAN: Bahagian ini mengandungi DUA (2) soalan. Jawab SEMUA soalan.

SECTION B: 55 MARKS BAHAGIAN B: 55 MARKAH INSTRUCTION: This section consists of TWO (2) questions. Answer ALL questions. ARAHAN: Bahagian ini mengandungi DUA (2) soalan. Jawab SEMUA soalan. QUESTION 1

### INSTRUCTION: This section consists of TEN (10) structured questions. Answer ALL questions.

SECTION B : 30 MARKS BAHAGIAN B : 30 MARKAH INSTRUCTION: This section consists of TEN (10) structured questions. Answer ALL questions. ARAHAN: Bahagian ini mengandungi SEPULUH (10) soalan berstruktur.

### INSTRUCTION: This section consists of FOUR (4) structured questions. Answer ALL questions.

SECTION B : 60 MARKS BAHAGIAN B : 60 MARKAH INSTRUCTION: This section consists of FOUR (4) structured questions. Answer ALL questions. ARAHAN: Bahagian ini mengandungi EMPAT (4) soalan berstruktur. Jawab

### EEM 312 ROBOTIK & PENGLIHATAN MESIN

UNIVERSITI SAINS MALAYSIA Peperiksaan Semester Pertama Sidang Akademik 2009/2010 April 2010 EEM 312 ROBOTIK & PENGLIHATAN MESIN Masa : 3 jam ARAHAN KEPADA CALON: Sila pastikan bahawa kertas peperiksaan

### LAB 5: WORKING WITH DATA

LAB : WORKING WITH DATA OBJECTIVES FOR STUDENTS. Identify the difference between integer and floating-point numbers. [Mengenal pasti perbezaan di antara nombor integer dan titik terapung.]. Write arithmetic

### KOLEJ MULTIMEDIA JALAN GURNEY KIRI KUALA LUMPUR

KOLEJ MULTIMEDIA JALAN GURNEY KIRI 54100 KUALA LUMPUR SECOND SEMESTER EXAMINATION, 2010/ 2011 SESSION PSD 2143 INTRODUCTION TO PROGRAMMING II NOR QUSIAH ABDUL RAZAK / ZAKRI MD SALLEH / AZNANI DAUD INSTRUCTION

### UNIVERSITI SAINS MALAYSIA. CMT322/CMM323 Web Engineering & Technologies [Kejuruteraan & Teknologi Web]

UNIVERSITI SAINS MALAYSIA First Semester Examination 2011/2012 Academic Session January 2012 CMT322/CMM323 Web Engineering & Technologies [Kejuruteraan & Teknologi Web] Duration : 2 hours [Masa : 2 jam]

### UNIVERSITI SAINS MALAYSIA. CST232 Operating Systems [Sistem Pengendalian]

UNIVERSITI SAINS MALAYSIA First Semester Examination 2015/2016 Academic Session December 2015/January 2016 CST232 Operating Systems [Sistem Pengendalian] Duration : 2 hours [Masa : 2 jam] INSTRUCTIONS

### Instructions: Answer all fourteen [14] questions. tannan:. Jawab semua empat belas [14] soalan.l. [Matematik Diskret] MSS Discrete Mathematics

UNIVERSITI SAINS MALAYSIA Second Semester Examination Academic Session 2007 12008 April2008 MSS 318 - Discrete Mathematics [Matematik Diskret] Duration :3 hours [Masa : 3 jamj Please check that this examination

### PANDUAN PENGGUNA (PENSYARAH)

Classroom Reservation User Manual (HEA) PANDUAN PENGGUNA (PENSYARAH) Table of Contents CLASSROOM RESERVATION MANAGEMENT SYSTEM - APLIKASI... 2 Apa itu CRMS?... 2 CRMS Feature Summary... 3 CRMS LOGIN...

### UNIVERSITI MALAYSIA SARAWAK KOTA SAMARAHAN SARAWAK

UNIVERSITI MALAYSIA SARAWAK 94300 KOTA SAMARAHAN SARAWAK FAKULTI SAINS KOMPUTER & TEKNOLOGI MAKLUMAT (Faculty of Computer Science & Information Technology) Diploma in Multimedia Technology EIGHT & TEN

### CPT113/CPM213 Programming Methodology & Data Structures [Metodologi Pengaturcaraan & Struktur Data]

Second Semester Examination 2016/2017 Academic Session June 2017 CPT113/CPM213 Programming Methodology & Data Structures [Metodologi Pengaturcaraan & Struktur Data] Duration : 2 hours [Masa : 2 jam] INSTRUCTIONS

### EEE 355 ROBOTIC & AUTOMATION [Robotik & Pengautomatan]

UNIVERSITI SAINS MALAYSIA Second Semester Examination 2013/2014 Academic Session June 2014 EEE 355 ROBOTIC & AUTOMATION [Robotik & Pengautomatan] Duration : 3 hours Masa : 3 jam Please check that this