UNIVERSITI SAINS MALAYSIA. CPT114 Logic & Applications [Logik & Aplikasi]

Similar documents
EEE 105 TEORI LITAR I

UNIVERSITI SAINS MALAYSIA. First Semester Examination 2013/2014 Academic Session. December 2013/January 2014 EEE 105 CIRCUIT THEORY I [TEORI LITAR I]

UNIVERSITI SAINS MALAYSIA. First Semester Examination 2014/2015 Academic Session. December 2014/January 2015 EEE 105 CIRCUIT THEORY I [TEORI LITAR I]

EEU 104 TEKNOLOGI ELEKTRIK

EEE 270 Elektronik Analog II

UNIVERSITI SAINS MALAYSIA. First Semester Examination. 2014/2015 Academic Session. December 2014/January 2015

UNIVERSITI SAINS MALAYSIA EEE 344 SISTEM VLSI

UNIVERSITI SAINS MALAYSIA. First Semester Examination 2013/2014 Academic Session. December 2013 / January 2014

UNIVERSITI SAINS MALAYSIA. First Semester Examination. 2014/2015 Academic Session. December 2014/January 2015

EEE 354 SISTEM KAWALAN DIGIT

UNIVERSITI SAINS MALAYSIA EEE 344 SISTEM VLSI

UNIVERSITI SAINS MALAYSIA EEM 352 REKABENTUK MEKATRONIK II

UNIVERSITI SAINS MALAYSIA. Peperiksaan Semester Pertama Sidang Akademik 2011/2012. Januari 2012 EEE 241 ANALOG I. Masa : 3 jam

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

EEU 104 TEKNOLOGI ELEKTRIK

UNIVERSITI SAINS MALAYSIA EEE 241 ELEKTRONIK ANALOG I

HBT 213 Sintaksis dan Semantik untuk Penterjemahan

EEE 344 SYSTEM VLSI [SISTEM VLSI]

UNIVERSITI SAINS MALAYSIA. First Semester Examination 2012/2013 Academic Session. January 2013 EEE 241 ANALOG ELECTRONIC I [ELEKTRONIK ANALOG I]

EEE 445 REKABENTUK LITAR ANALOG BERSEPADU

UNIVERSITI SAINS MALAYSIA. Peperiksaan Semester Kedua Sidang Akademik 2002/2003. Februari/Mac 2003

UNIVERSITI SAINS MALAYSIA EEK 472 POWER SYSTEM ANALYSIS

EEE 340 ELEKTRONIK ANALOG II

EEK 365 SISTEM PENGAGIHAN ELEKTRIK KUASA

UNIVERSITI SAINS MALAYSIA

EPP 212 Advanced Manufacturing Technology [Teknologi Pembuatan Termaju]

RAG 265 Building Construction 2 [Pembinaan Bangunan 2]

EEE 445 DESIGN OF INTEGRATED ANALOG CIRCUITS

UNIVERSITI SAINS MALAYSIA Peperiksaan Semester Pertama Sidang Akademik 2003/2004

EEE 130 ELEKTRONIK DIGIT I

EPP 212 Advanced Manufacturing Technology [Teknologi Pembuatan Termaju]

UNIVERSITI SAINS MALAYSIA. First Semester Examination 2012/2013 Academic Session. January 2013 EEU 104 ELECTRONIC TECHNOLOGY [TEKNOLOGI ELEKTRIK]

EPP 212 Advanced Manufacturing Technology [Teknologi Pembuatan Termaju]

UNIVERSITI SAINS MALAYSIA. Peperiksaan Semester Kedua Sidang Akademik 1997/98. Februari EEE Peranti Semikonduktor Lanjutan.

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

UNlVERSITI SAIN$ MALA YSIA. Peperiksaan Semester Kedua Sidang Akademik 1997/98. Februari EEE 228, Isyarat Dan Sistem

RAG 322 Environmental Science 2 [Sains Persekitaran 2]

UNIVERSITI SAINS MALAYSIA EEU TEKNOLOGI ELEKTRIK. Jawab semua soalan dalam bahasa Malaysia atau bahasa Inggeris atau kombinasi kedua-duanya.

EEE 241 ELEKTRONIK ANALOG I

EEK 361 ELEKTRONIK KUASA

EEK ELEKTRONIK KUASA LANJUTAN

EEE 332 COMMUNICATION

UNIVERSITI SAINS MALAYSIA. Peperiksaan Semester Kedua Sidang Akademik 1997/98. Februari EEE Teori Litar. Masa: [3 jam]

EEK 471 ELEKTRONIK KUASA LANJUTAN

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

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

ELEKTRONIK KUASA LANJUTAN

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

EEK 471 ADVANCED POWER ELECTRONIC

EEM 352 REKABENTUK MEKATRONIK II

EEK 472 POWER SYSTEM ANALYSIS [ANALISA SISTEM KUASA]

KORELASI. Standard Technical Manual. Rekod Pindaan / Semakan. Pindaan 1 : Pindaan pada pengenalan. Pindaan pada tatacara no

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

QUESTION SET 1 DIFFICULTY: HARD. 1) Figure below shows a many-to-one relationship. Rajah di bawah menunjukkan hubungan banyak kepada satu.

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

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

...2/- Masa: [3 jam] Jawab LIMA (5) soalan. Semua soalan hendaklah dijawab di dalam Bahasa Malaysia. Jika pelajar memilih menjawab di

Markahyang diperuntukkan bagi setiap soalan dan ceraian soalan ditunjukkan dalam kurungan.

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

INSTRUCTION: This section consists of SIX (6) essay questions. Answer FOUR (4) questions only.

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

ZCT 534/4 - Physics of Diagnostic Radiology [Fizik Radiologi Diagnosis]

EEK ANALISIS SISTEM KUASA

Answer all questions. Jawab semua soalan. (i) Write in words Tulis dalam perkataan. [1 marks]

RAG 265 Building Construction 2 [Pembinaan Bangunan 2]

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

Versi Dokumen: 1.0 ISI KANDUNGAN

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

EEM 353 MECHANICAL ENGINEERING DESIGN [REKABENTUK KEJURUTERAAN MEKANIK]

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

RAG Building Construction 2 [Pembinaan Bangunan 2]

CG605: UTILITY MAPPING

UNIVERSITI SAINS MALAYSIA

Ogos / September 1998 UNIVERSITI SAINS MALAYSIA. Peperiksaan Semester Pertama Sidang Akademik 1998/99 EAA 454/4 - REKABENTUK STRUKTUR LANJUTAN

EEU104 Electrical Technology (Teknologi Elektrik)

EAK 261E/3 Geomatics Engineering EAK 261E/3 - Kejuruteraan Geomatik

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

Diagram 1.1 Rajah 1.1

PKSR AKHIR SEMESTER 2 (OKTOBER) 2013

INSTRUCTION: This section consists of SIX (6) structured questions. Answer only FOUR (4) questions.

EPC 431 Robotic & Automation Robotik & Automasi

UNIVERSITI SAINS MALAYSIA. Peperiksaan Semester Pertama Sidang Akademik 1996/97. OktoberlNovember EEE Perhubungan.

INSTRUCTION: This paper consists of SIX (6) structured questions. Answer any FOUR (4) questions.

INSTRUCTION: This paper consists of SIX (6) questions. Answer FOUR (4) questions only.

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

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

UNIVERSITI SAINS MALAYSIA. EPE 462 Industrial Machine Vision [Penglihatan Mesin Industri]

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

-1- UNIVERSITI SAINS MALAYSIA. First Semester Examination 2012/2013 Academic Session. January 2013

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

Additional Mathematics Form 5 Chapter 1 (Progression) PROGRESSION (JANJANG) Paper 1

Versi Dokumen: 1.0 JOINT RESEARCH PROJECT

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

UNIVERSITI SAINS MALAYSIA. EPE 442 Advanced Semiconductor Manufacturing Technology [Teknologi Pembuatan Semikonduktor Termaju]

EPC 431 Robotic And Automation [Robotik Dan Automasi]

MULTIMEDIA COLLEGE JALAN GURNEY KIRI KUALA LUMPUR

SOP, PERATURAN & ARAHAN MENEMPAH ALATAN MAKMAL INFORMM Pulau Pinang SECARA TALIAN (e-booking)

UNIVERSITI SAINS MALAYSIA. EPC 431 Robotic And Automation [Robotik dan Automasi]

MULTIMEDIA COLLEGE JALAN GURNEY KIRI KUALA LUMPUR

ENAM soala%jawab maria-mana LIMA soalan sahaja.

Transcription:

UNIVERSITI SAINS MALAYSIA First Semester Examination 2015/2016 Academic Session December 2015/January 2016 CPT114 Logic & Applications [Logik & Aplikasi] Duration : 3 hours [Masa : 3 jam] INSTRUCTIONS TO CANDIDATE: [ARAHAN KEPADA CALON:] Please ensure that this examination paper contains THREE questions in NINE printed pages before you begin the examination. [Sila pastikan bahawa kertas peperiksaan ini mengandungi TIGA soalan di dalam SEMBILAN 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-1. (a) Write down whether each of the following statement is TRUE or FALSE. If any statement is FALSE, indicate the change to be done in order to make it TRUE: (iv) (v) (vi) (vii) (viii) (ix) (x) In correct reasoning, the conclusion is never false. The process of arriving at and affirming one proposition on the basis of one or more other propositions is called interpretation. Either cigarette smoking in eating establishments should be banned or these establishments should have designated smoking areas. This is a conditional proposition. An invalid deductive argument is one in which, if the premises are true, the conclusion could be false. Diagramming involves laying out the structure of the argument in twodimensional spatial relations. In analyzing an argument one must not ignore authorial intent. A stipulative definition reports a meaning that a definiendum already has. The figure of a syllogism is determined by the position of the middle term in its premises. Categorical propositions are false if their quality is negative. The obverse of No sofas are chairs is No chair is a sofa. (10/100) For each argument, determine whether or not it is valid. If the argument is not valid, describe the steps to make it valid. If you get enough money, you can buy a new car. You can buy a new car. Therefore, you have got enough money. If the weather is good, we can go to the beach. The weather is not good. Therefore, we cannot go to the beach. The cafeteria food is acceptable or appalling. The cafeteria food is acceptable. Therefore, the cafeteria food is not appalling....3/-

- 3 - Use diagramming technique to analyse the following arguments. Rome was able to maintain control over its vast empire because it had welltrained soldiers and could deploy them quickly on well-made roads. At one time Gary Kasparov had the highest ranking of any chess grandmaster in history. However, he was beaten in a chess tournament by a computer program called Deep Blue, so the computer program should be given a ranking higher than Kasparov. (d) For each categorical proposition, identify the subject and predicate term. Name the quality, quantity, quantifier and state whether the subject and predicate terms are distributed or undistributed. Then, represent the proposition using a Venn diagram. All professors of philosophy are psychopaths in need of immediate medication. Some passengers on large jet airplanes are not satisfied customers. (8/100) (e) Write out four syllogistic forms for AEE using S and P as the subject and predicate terms and M as the middle term. Test and explain each syllogistic form using Venn diagram with example classes (e.g. artist, actors, rich people, liars, etc.) to show whether it is valid or invalid. (10/100) 2. (a) Provide a truth table and conclusion based on the following statement. T ~ (a b) (~ a ~ b) (5/100) Using the truth table for each of the following statement forms, find whether it is a tautology, self-contradictory or contingent form: (p q) (p q) (p p ) (q q ) [p (q r )] [(p q) (p r)] (9/100)...4/-

- 4 - Construct a formal proof of validity, using the rules of inference, for each of the following arguments: 1.(~ A ~ B) (O B) 2.B A 3.~ A ~ O 1.A B 2.(A B) C 3.(A C) D A D If the first disjunct of a disjunction is true, the disjunction as a whole is true. Therefore if both the first and second disjuncts of the disjunction are true, then the disjunction as a whole is true. (14/100) (d) Translate each of the following into the logical notation of propositional functions and quantifiers. Use the abbreviations given in brackets and make each formula begin with a quantifier, not with a negation symbol: Snakes bites are sometimes fatal (S : is a snake bites; F : is fatal). Not any applicant was hired (A : is an applicant; H : was hired). (4/100) (e) Construct a formal proof of validity, using the rules of inference, for the following arguments: 1. ( ) (A ~D ) 2. ( )(C A ) ( )(C ~D ) (8/100)...5/-

- 5-3. (a) Given the following facts in a Prolog program: person(ammar, male, 24). person(fatimah, female, 15). person(lee, male, 17). person(may, female, 15). person(jane, female, 22). person(fred, male, 25). Write a query to find anyone whose age 15 years old. Write a predicate called match, which matches any male in his twenties with any female in her twenties. Write a predicate called power(n,pow)that finds the value of two to the power of N. For example:?- power(3, Pow). Pow = 8 This is because 2 x 2 x 2 is 8. (7/100) Write a predicate called sumlist(n, Sum)that sums all the integers in a list of integers, N. For example:?- sumlist([1,2,3], Sum). Sum = 6 This is because 1 + 2 + 3 is 6. (7/100)...6/-

KERTAS SOALAN DALAM VERSI BAHASA MALAYSIA - 6-1. (a) Nyatakan sama ada setiap pernyataan berikut adalah BENAR atau PALSU. Jika jawapan untuk pernyataan adalah PALSU, kemukakan perubahan yang perlu dilakukan untuk menjadikan pernyataan tersebut BENAR: (iv) (v) (vi) (vii) (viii) (ix) (x) In correct reasoning, the conclusion is never false. The process of arriving at and affirming one proposition on the basis of one or more other propositions is called interpretation. Either cigarette smoking in eating establishments should be banned or these establishments should have designated smoking areas. This is a conditional proposition. An invalid deductive argument is one in which, if the premises are true, the conclusion could be false. Diagramming involves laying out the structure of the argument in twodimensional spatial relations. In analyzing an argument one must not ignore authorial intent. A stipulative definition reports a meaning that a definiendum already has. The figure of a syllogism is determined by the position of the middle term in its premises. Categorical propositions are false if their quality is negative. The obverse of No sofas are chairs is No chair is a sofa. (10/100) Untuk setiap hujah berikut, tentukan sama ada hujah itu adalah sah atau tidak. Jika hujah adalah tidak sah, terangkan langkah-langkah untuk menjadikannya sah. If you get enough money, you can buy a new car. You can buy a new car. Therefore, you have got enough money. If the weather is good, we can go to the beach. The weather is not good. Therefore, we cannot go to the beach. The cafeteria food is acceptable or appalling. The cafeteria food is acceptable. Therefore, the cafeteria food is not appalling....7/-

- 7 - Guna teknik rajah untuk menganalisiskan hujah-hujah berikut. Rome was able to maintain control over its vast empire because it had welltrained soldiers and could deploy them quickly on well-made roads. At one time Gary Kasparov had the highest ranking of any chess grandmaster in history. However, he was beaten in a chess tournament by a computer program called Deep Blue, so the computer program should be given a ranking higher than Kasparov. (d) Untuk setiap proposisi pengelasan, kenal pasti terma subjek dan terma predikat. Namakan kualiti, kuantiti, pengkuantiti dan nyatakan sama ada terma subjek dan terma predikat adalah diagihkan atau tidak diagihkan. Kemudian, wakilkan proposisi dengan menggunakan gambar rajah Venn. All professors of philosophy are psychopaths in need of immediate medication. Some passengers on large jet airplanes are not satisfied customers. (8/100) (e) Tuliskan empat bentuk silogistik AEE dengan menggunakan S dan P sebagai terma subjek dan terma predikat dan M sebagai terma tengah. Uji dan terangkan setiap bentuk silogistik melalui gambar rajah Venn dengan menggunakan contoh kelas-kelas (seperti artis, pelakon, orang kaya, orang yang berdusta, dan lain-lain) untuk menunjukkan sama ada ia sah atau tidak sah. (10/100) 2. (a) Sediakan jadual kebenaran dan kesimpulan berdasarkan pernyataan yang berikut: T ~ (a b) (~ a ~ b) (5/100) Dengan menggunakan jadual kebenaran bagi setiap bentuk pernyataan berikut, cari sama ada ia adalah tautologi, bercanggah atau bentuk kontingen: (p q) (p q) (p p ) (q q ) [p (q r )] [(p q) (p r)] (9/100)...8/-

- 8 - Bina bukti formal kesahihan, dengan menggunakan peraturan kesimpulan, bagi setiap hujah-hujah berikut: 1.(~ A ~ B) (O B) 2.B A 3.~ A ~ O 1.A B 2.(A B) C 3.(A C) D A D Sekiranya disjungsi pertama adalah benar, disjungsi secara keseluruhannya adalah benar. Maka oleh yang demikian sekiranya keduadua disjungsi yang pertama dan kedua adalah benar, maka disjungsi secara keseluruhannya adalah benar. (14/100) (d) Terjemahkan setiap yang berikut ke dalam notasi logik fungsi dan pengkuantiti usulan. Gunakan singkatan yang diberikan dalam kurungan dan tulis setiap formula bermula dengan pengkuantiti, bukan dengan simbol penafian: Snakes bites are sometimes fatal (S : is a snake bites; F : is fatal). Not any applicant was hired (A : is an applicant; H : was hired). (4/100) (e) Bina bukti formal kesahihan, dengan menggunakan peraturan kesimpulan, bagi hujah berikut: 1. ( ) (A ~D ) 2. ( )(C A ) ( )(C ~D ) (8/100)...9/-

- 9-3. (a) Diberi fakta berikut dalam atur cara Prolog: person(ammar, male, 24). person(fatimah, female, 15). person(lee, male, 17). person(may, female, 15). person(jane, female, 22). person(fred, male, 25). Tulis pertanyaan untuk mencari sesiapa yang berumur 15 tahun. Tulis predikat dipanggil match, yang memadankan mana-mana lelaki dalam lingkungan umur dua puluhan dengan mana-mana wanita dalam lingkungan umur dua puluhan. Tulis predikat dipanggil power(n,pow) yang mencari nilai dua kuasa N. Sebagai contoh:?- power(3, Pow). Pow = 8 Ini kerana 2 x 2 x 2 ialah 8. (7/100) Tulis predikat dipanggil sumlist(n, Sum) yang menjumlahkan semua nilai integer dalam senarai N yang mengandungi nombor integer. Sebagai contoh:?- sumlist([1,2,3], Sum). Sum = 6 Ini kerana 1 + 2 + 3 ialah 6. (7/100) - ooooooo -