Nama: Tingkatan :

Tarikh:

Program : ICT SPM Programming

01 A series of instructions that directs a computer to perform tasks is known as Satu siri arahan yang mengarahkan komputer untuk melaksanakan tugasan dikenali sebagai A. Statement pernyataan B. Computer code kod komputer C. Computer program program komputer 02 A series of step by step instructions telling the computer exactly what to do is called a Satu siri suruhan langkah demilangkahyang mengarahkan komputer melakukan sesuatu tugasan dipanggil 03 Complete the following statement. Lengkapkan pernyataan berikut: A language used for writing computer codes to direct a computer to perform tasks is called ................... . Bahasa yang digunakan untuk menulis kod komputer untuk mengarahkan komputer melakukan tugasan dinamakan ................. . 04

State whether the following statement is True or False. Nyatakan sama ada pernyataan berikut Benar atau Palsu. A programming languege is a set of rules that can be used to tell a computer what tasks to carry out. Bahasa pengaturcaraan adalah satu set peraturan yang boleh digunakan untuk memberitahu komputer tugasan yang perlu dilaksanakan.

05

Complete the following statements by filling in the blanks: Isikan ruang kosong untuk melengkapkan pernyataan berikut: A .......(i)........ level programming language uses codes, .........(ii)........... and is machine dependent. Bahasa pengaturcaraan aras .........(i)........... menggunakan kod, .........(ii)........... dan bergantung kepada mesin.

06

Table 2 shows the criteria of two generations of low-level programming languages Jadual 2 menunjukkan kriteria dua generasi bahasa pengaturcaraan aras rendah. - Human-readable notation X Nota yang boleh dibaca - Use symbolic instruction code Menggunakan kod arahan simbolik - Instructions can be executed directly by CPU Y Arahan boleh dilaksanakan terus oleh CPU - Uses binary code Menggunakan kod binari Table 2 Jadual 2 Based on Table 2, name the generation of programming language for : Berdasarkan Jadual 2, namakan generasi bahasa pengaturcaraan untuk: (i) X (ii) Y Program Checklist SPM Programming SMKKB 2014

1

07 Figure 4 shows a part of a source code for computer program using different programming languages. Rajah 4 menunjukkan sebahagian daripada kod sumber untuk program komputer menggunakan bahasa pengaturcaraan berlainan. I 1010 1100 II ST 140, SALARY 1011 1101 SR 4,4 1101 1111 SR 7,7 PACK DOUBLE, 51 III 000122 50E6 0012BB 10F0 1011CD 001

IV SELECT * FROM Student WHERE Class = ‘3A’ Figure 4 Rajah 4 Based on Figure 4, which of the source code used the first generation programming language? Berdasarkan Rajah 4, kod sumber yang manakah menggunakan bahasa pengaturcaraan generasi pertama? A. I, II B. I, III C. II, IV D. III, IV 08 State whether the following statement is True or False. Nyatakan sama ada pernyataan berikut Benar atau Palsu. In structured programming approach, the original set of requirements are broken into smaller and more manageable sections. Dalam pendekatan pengaturcaraan berstruktur, set keperluan asal dipecahkan kepada bahagian-bahagian kecil dan lebih mudah diurus. 09 The following statements are related to the characteristics of structured programming except Pernyataan berikut adalah berkaitan dengan ciri-ciri pengaturcaraan berstruktur kecuali A. Main program is broken down into smaller modules Program utama dipecahkan kepada modul-modul yang lebih kecil B. Procedures in the program are reusable Prosedur-prosedur dalam program boeh diguna semula C. Sub procedure inherits methods and attributes from procedure Sub prosedur mewarisi kaedah-kaedah dan atribut-atribut daripada prosedur D. Data and procedure are not kept together Data dan prosedur tidak disimpan bersama 10 Which of the following approach is used in structured programming? Antara yang berikut pendekatan yang manakah digunakan dalam pengaturcaraan berstruktur? A. Hierarchy hierarki B. Event driven berpacu peristiwa C. Bottom up atas bawah D. Object objek

Program Checklist SPM Programming SMKKB 2014

2

11 State one approach in programming. Nyatakan satu pendekatan dalam pengaturcaraan. 12

Which of the following characteristics are related to an object-oriented programming approach? Antara ciri berikut yang manakah berkaitan dengan pendekatan pengaturcaraan berorientasikan objek? I Main routine is broken into smaller sections Rutin utama dipecahkan kepada unit-unit kecil II Data and instructions are separated Data dan suruhan diasingkan III Data and instructions are encapsulated into a single unit Data dan suruhan dikurung menjadi satu unit IV The propgramming language is event-driven Bahasa pengaturcaraan adalah pacuan peristiwa A. I, II B. I, IV C. II, III D. III, IV

13 State whether the following statement is True or False. Nyatakan sama ada pernyataan berikut Benar atau Palsu. Program written using high level programming language must be translated into machine language before execution. Atur cara yang ditulis menggunakan bahasa pengaturcaraan aras tinggi mesti diterjemahkan ke dalam bahasa mesin sebelum dilaksanakan. 14 Figure 6 shows the categories of programming languages. Rajah 6 menunjukkan kategori bahasa pengaturcaraan.

Figure 6 Based on Figure 6, identify Z. Berdasarkan Rajah 6, kenal pasti Z.

Rajah 6

15 Figure 5 shows three program statements. Rajah 5 menunjukkan tiga pernyataan program. Dim A as integer Const B = 5.3 Dim C as double = 5.3 Figure 5 Rajah 5 Based on Figure 5, state the identifier in which its value will not change at run time. Berdasarkan Rajah 5, nyatakan pengecam di mana nilainya tidak berubah pada masa jalanan. Program Checklist SPM Programming SMKKB 2014

3

16 Figure 7 shows some parts of a program code. Rajah 7 menunjukkan sebahagian daripada kod pengaturcaraan. ... Const disc = 0.8 Const n = 500 Dim unit as Integer Dim price as Double Dim Amt as Double .... If x > 5 OR price > n Then Amt = price * disc * unit Else Amt = price * unit End if ...

Figure 7

Rajah 7

Based on Figure 7, identify: Berdasarkan Rajah 7, kenal pasti (i) Integer variable Pembolehubah integer (ii) Logical operator Operator logik 17

Write the correct words to complete the following statement : Tulis perkataan yang betul untuk melengkapkan pernyataan berikut: During the execution of a program the value of a (i) ……………. can be changed the value of a (ii) ……………. cannot be changed. Semasa atur cara dilaksanakan nilai sesuatu (i) ……………….. boleh diubah sedangkan nilai untuk (ii) ………………… tidak boleh diubah.

18 Choose the correct statements regarding variables and constants. Pilih pernyataan yang betul tentang pemboleh ubah dan pemalar. Variables are identifiers I Pemboleh ubah adalah pengecam II Constants are identifiers Pemalar adalah pengecam III Variables are assigned values that may change Pemboleh ubah digunakan untuk nilai yang boleh berubah IV Constants are assigned values that may change. Pemalar digunakan untuk nilai yang boleh berubah A. I, II, III B. I, II, IV C. I, III, IV D. II, III, IV

Program Checklist SPM Programming SMKKB 2014

4

19 Table 3 shows some types of data. Jadual 3 menunjukkan beberapa jenis data. Types of data Jenis Data R

Item Perkara True or False values Nilai Benar atau Palsu S Whole Numbers Nombor Bulat Table 3 Jadual 3 Based on Table 3, state the types of data for: Berdasarkan Jadual 3, nyatakan jenis data untuk: (i) R (ii) S

20 Table 7 shows examples of data. Jadual 7 menunjukkan contoh-contoh data. Variable Data Pembolehubah Name Nama Lucy Married Berkahwin No Age Umur 16 Weight Berat 48.3 kg Date of Birth Tarikh Lahir 22/07/1997 Table 7 Jadual 7 Based on Table 7, identify the data classified as: Berdasarkan Jadual 7, kenal pasti data yang diklasifikasikan sebagai: (i) Boolean (ii) integer 21 Figure 10 shows examples of high level programming language. Rajah 10 menunjukkan contoh-contoh bahasa pengaturcaraan aras tinggi. P Q R C++ SQL Prolog BASIC Focus LISP Figure 10 Rajah 10 Based on Figure 10, classify the following by writing P, Q or R. Berdasarkan Rajah 10, kelaskan yang berikut dengan menulis P, Q atau R. (i) COBOL (ii) MERCURY 22 Figure 8 shows some samples of data. Rajah 8 menunjukkan beberapa sampel data. I 1025 II 10.25 III “10.25” Figure 8 Rajah 8 Based on Figure 8, identify: Berdasarkan Rajah 8,kenal pasti (i) Integer integer (ii) String deretan

Program Checklist SPM Programming SMKKB 2014

5

23

Table 3 shows the characteristics of a piece of software, S, is used to run written in a programming language. Jadual 3 menunjukkan ciri-ciri sebuah perisian, S, yang digunakan untuk melaksanakan sebuah program yang ditulis dalam bahasa pengaturcaraan. S - Read statement and converts to object code Baca pernyataan dan tukar kepada kod objek - Execute line by line Melaksanakan baris demi baris Table 3 Jadual 3 Based on Table 3, S is Berdasarkan Jadual 3, S adalah A. an assembler penghimpun B. a compiler pengkompilasi C. an interpreter pentafsir D. a translator penterjemah

24

Figure 9 shows an incomplete program. Rajah 9 menunjukkan atur cara yang tidak lengkap. Dim Name as X Dim PI as Y Name = “Ali” PI = 3.142 Figure 9 Rajah 9 Based on Figure 9, identify : Berdasarkan Rajah 9, kenal pasti: (i) X (ii) Y

25 Figure 10 shows types of operator. Rajah 10 menunjukkan jenis-jenis operator.

Figure 10 Rajah 10 Based on Figure 10, state two logical operators. Berdasarkan Rajah 10, nyatakan dua operator logik. Program Checklist SPM Programming SMKKB 2014

6

26

‘<’ and ‘+’ symbols are examples of Simbol ‘<’ and ‘+’ adalah contoh

27 Table 2 shows operators used in programming. Jadual 2 menunjukkan operasi yang digunakan dalam pengaturcaraan. Operator Notation Operasi Notasi X AND, NOT, OR Y +, *, /, Table 2 Jadual 2 Based on Table 2: Berdasarkan Jadual 2: (i) State X Nyatakan X (ii) Give another notation for Y. Berikan satu notasi lain untuk Y. 28

State whether the following statement is True or False. Nyatakan sama ada pernyataan berikut Benar atau Palsu. Figure 7 shows the flow chart of a program. Rajah 7 menunjukkan carta alir bagi satu atur cara.

Figure 7 Rajah 7 The above flow chart has a selection control structure. Carta alir di atas mempunyai struktur kawalan pilihan.

Program Checklist SPM Programming SMKKB 2014

7

29 Figure 8(a) and 8(b) show flowchart segments. Rajah 8(a) dan 8(b) menunjukkan segmen carta alir.

Figure 8(a) Rajah 8(a) Figure 8(b) Rajah 8(b) Identify the control structure used in: Kenal pasti struktur kawalan yang digunakan dalam: (i) Figure 8(a) Rajah 8(a) (ii) Figure 8(b) Rajah 8(b) 30 Figure 9 shows program development phases. Rajah 9 menunjukkan fasa pembangunan atur cara.

Figure 9 Rajah 9 Phase 2 and Phase 4 for the proper program development phase are: Fasa 2 dan 4 bagi fasa pembangunan atur cara yang teratur adalah: (i) Phase 2 Fasa 2 : (ii) Phase 4 Fasa 4 : 31 Write True or False. Tuliskan Benar atau Palsu. A programmer uses flowcharts to code a program. Pengatur cara menggunakan carta alir untuk mengekod atur cara. Program Checklist SPM Programming SMKKB 2014

8

32

Figure 10(a) and 10 (b) shows partial flowcharts of two programs. Rajah 10(a) dan 10 (b) menunjukkan sebahagian carta alir untuk dua program.

Figure 10 (a) Rajah 10(a) Identify the control structure used in: Kenal pasti struktur kawalan yang digunakan dalam: (i) Figure 10 (a) Rajah 10(a) (ii) Figure 10 (b) Rajah 10(b)

Figure 10 (b)

Rajah 10(b)

33

Complete the following statements by filling in the blanks: Isikan ruang kosong untuk melengkapkan pernyataan berikut: In the ...........(i).......... phase, a solution is represented in the form of ..........(ii)........... flow chart and logic structure. Dalam fasa ...........(i).......... penyelesaian dinyatakan dalam bentuk ...........(ii).......... , carta alir dan struktur logik.

34

State the first phase and the third phase of program development. Nyatakan fasa pertama dan fasa ketiga pembangunan atur cara. (i) First phase Fasa pertama: (ii) Third phase: Fasa ketiga:

35

Table 2 shows tasks carried out during a program development cycle. Jadual 2 menunjukkan tugas-tugas yang dilaksanakan semasa kitar pembangunan atur cara. P Write program Tulis atur cara Q Draw user interface Lukis antara muka pengguna R Identify input and output Kenal pasti input dan output S Produce the user guide Hasilkan panduan pengguna T Check for errors Semak ralat Based on Table 2, select P, Q, R, S or T for the following phases of the program development cycle: Berdasarkan Jadual 2, pilih P, Q, R, S atau T bagi fasa berikut di dalam kitar pembangunan atur cara: (i) Problem analysis Analisis masalah (ii) Documentation. Dokumentasi. Program Checklist SPM Programming SMKKB 2014

9

36 Which of the following symbols represents a decision in a selection control structure? Antara yang berikut simbol yang manakah mewakili keputusan dalam struktur kawalan pilihan? A. B.

C.

D.

37 Which of the following processes take place in the program design phase? Antara proses berikut yang manakah berlaku dalam fasa reka bentuk atur cara? I Preparing the user manual Menyediakan manual pengguna II Writing pseudocode Menulis pseudokod III Drawing flowcharts Melukis carta alir IV Collecting data Mengumpul data A. I, II B. I, IV C. II, III D. III, IV 38 Complete the following statement. Lengkapkan pernyataan berikut: The five main phases in program development in sequence are problem analysis, …….(i)…….. , coding, testing and debugging and …….(ii)…….. . Lima fasa utama dalam pembangunan atur cara mengikut urutan adalah analisis masalah, …….(i)…….., pengekodan, pengujian dan nyahpijat dan ……. (ii)…….. . Diusahakan oleh wkict.blogspot.com

Program Checklist SPM Programming SMKKB 2014

10

ICT SPM Prog.pdf

Program written using high level programming language must be translated into machine. language before execution. Atur cara yang ditulis menggunakan ...

433KB Sizes 6 Downloads 312 Views

Recommend Documents

ICT SPM CNC.pdf
05 Figure 4 shows the network design for a computer laboratory. Computer N1 controls access to. resources on the network. Rajah 4 menunjukkan reka bentuk ...

ICT SPM MM.pdf
I Movies. Tayangan filem. II Computer games. Permainan komputer. III Television advertisement. Iklan televisyen. IV Web page browser. Pelungsur laman web.

ICT SPM IS.pdf
Data Base Management System (DBMS) is a software used in adding, updating,. managing, accessing and analysing data in a data base. Sistem Pengurusan ...

ICT SPM IS2 BnC.pdf
Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. ICT SPM IS2 BnC.pdf. ICT SPM IS2 BnC.pdf. Open. Extract.

ICT SPM CNC2 BnC.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. ICT SPM CNC2 ...

ICT AcceptableUseStudent.pdf
immediately inform a member of staff who will then report it to a member of the ICT Support Team or a member of. the senior management team. 2.10 Students ...

Untitled - ICT-SMK.Net
Using the JOE Editor. 91 .... The bottom line is that you want to find quick and efficient ways of getting Ubuntu .... chris@host1:/tmp$ sudo useradd -m joe.

ICT Acceptable Use.pdf
could be calculated to incite hatred against any group. ... Staff must not use their mobile phones or other personal devices to take pictures of pupils. Photo.

SS3 ICT CURRICULUM.pdf
NETWORKING. 1. Definition of a Computer Network. 2. Types of Network. -PAN -LAN -WAN -MAN -Internet. 3. Network topology. -Star -Bus -Ring. 4. Network ...

SPM 2016 BK5 LK.pdf
Loading… Whoops! There was a problem loading more pages. Retrying... Whoops! There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. SPM 2016 BK5 LK.pdf. SPM 2016

LPKPM SPM 2013 BIBLE KNOWLEDGE.pdf
SIJIL PELAJARAN MALAYSIA 2013 922I ... Name the book of the Scriptures which Jesus read from. State what ... LPKPM SPM 2013 BIBLE KNOWLEDGE.pdf.

S-607_penegasan penyampaian SPM PPNPN.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item.

LPKPM SPM 2014 KESUSASTERAAN CINA.pdf
10. 9216 a zott tt"x cipta Kerajaan Mataysi. www.myschoolchildren.com. 㚜⣂侫⌟炻実⌛⇣㳷奰烉. Page 3 of 5. LPKPM SPM 2014 KESUSASTERAAN CINA.pdf.

SPM Kelantan BI K2.pdf
Page 1 of 15. cikgusazali.blogspot.my. Page 1 of 15. Page 2 of 15. cikgusazali.blogspot.my. Page 2 of 15. Page 3 of 15. cikgusazali.blogspot.my. Page 3 of 15.

SPM 2016 BK5 TI .pdf
Loading… Page 1. Whoops! There was a problem loading more pages. Retrying... SPM 2016 BK5 TI .pdf. SPM 2016 BK5 TI .pdf. Open. Extract. Open with.

SPM 2016 BK5 PSS .pdf
Whoops! There was a problem loading more pages. Retrying... Whoops! There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. SPM 2016 BK5 PSS .pdf. SPM 2016 BK5 PSS

LPKPM SPM 2011 BIBLE KNOWLEDGE.pdf
Sekiranya. buku jawapan tidak mencukupi,, sila dapatkan helaian tambahan daripada. pengawas peperiksaan. Soalan adalah berdasarkan Good News Bible.

LPKPM SPM 2013 BIBLE KNOWLEDGE.pdf
Soalan adalah berdasarkan Good News Bible. Kertas soalan ini mengandungi 5 halaman bercetak dan 3 halaman tidak bercetak. llihat halaman sebelah.

SPM 2016 BK5 PSI .pdf
Sign in. Page. 1. /. 21. Loading… Page 1 of 21. Page 1 of 21. Page 2 of 21. Page 2 of 21. Page 3 of 21. Page 3 of 21. SPM 2016 BK5 PSI .pdf. SPM 2016 BK5 PSI .pdf. Open. Extract. Open with. Sign In. Main menu. Displaying SPM 2016 BK5 PSI .pdf. Page

Kompilasi Soalan SPM 3C Jawapan.pdf
... sebuah negara multi etnik, Malaysia memerlukan amalan pengongsian budaya. dalam kalangan rakyat. Page 3 of 4. Kompilasi Soalan SPM 3C Jawapan.pdf.

LPKPM SPM 2014 INFORMATION AND COMMUNICATION ...
LPKPM SPM 2014 INFORMATION AND COMMUNICATION TECHNOLOGY PAPER 1.pdf. LPKPM SPM 2014 INFORMATION AND COMMUNICATION ...

SS1 ICT CURRICULUM.pdf
State 12 examples of computer software. xi. Define data. xii. Define information. xiii. Give two examples of data. xiv. Give two examples of data. #1. MICROSOFT.

Pahang ICT Skema.pdf
Whoops! There was a problem previewing this document. Retrying... Download. Connect more apps... Pahang ICT Skema.pdf. Pahang ICT Skema.pdf. Open.

ICT DALAM PDP.pdf
Lampiran. Kandungan. Page 3 of 39. ICT DALAM PDP.pdf. ICT DALAM PDP.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying ICT DALAM PDP.pdf.