SOALAN Cuti 2009
SOALAN Cuti 2009
SOALAN Cuti 2009
3768/1
BAHAGIAN A
(50 markah)
SECTION A
(50 marks)
mengalir
flowing
D.
membawa
carrying
[1 markah]
[1 mark]
2.
3.
Cip BIOS
BIOS chip
D.
Cakera keras
Hard disk
[1 markah]
[1 mark]
4.
Memproses data
Processing data
D.
Mengubah data
Editing data
Mencari data
Searching data
[1 markah]
[1 mark]
SULIT
5.
3768/1
Apakah fungsi pembekal kuasa?
What is the function of power supply ?
A.
mematikan kuasa
switching off the power
C.
mengawal kuasa
controlling power
B.
membekalkan kuasa
supplying power
D.
meyimpan kuasa
saving power
[1 markah]
[1 mark]
6.
7.
8.
Di antara berikut manakah simbol carta alir yang mewaliki struktur pilihan if ?
Which of the following flowchart symbols represents the if selection structure?
A.
B.
C.
D.
[1 markah]
[1 mark]
9.
SULIT
10.
3768/1
Pertimbangkan segmen aturcara berikut.
Assume the program segment below
int divide;
divide = 16 / 5;
printf(%d, divide);
3.2
1
B.
D.
3
2
[1 markah]
[1 mark]
11.
12.
13.
Internet ____________________________________________________
b.
HTTP
c.
HTML ____________________________________________________
d.
URL
____________________________________________________
____________________________________________________
[4 markah]
[4 marks]
SULIT
3768/1
14.
15.
: ____________________________________________________
Kelemahan : ____________________________________________________
Disadvantage
[2 markah]
[2 marks]
16.
b.
c.
d.
SULIT
17.
3768/1
Papan Kekunci
Keyboard
Pengimbas
Scanner
Tetikus
Mouse
18.
b.
c.
SULIT
3768/1
The _____________ standard library function displays information on the
screen.
d.
19.
Tandakan pada jawapan yang betul dan pada jawapan yang salah di dalam
petak yang disediakan.
Tick to the correct answer and to the incorrect answer in the box given.
a.
b.
c.
d.
e.
20.
SULIT
3768/1
Write a single C statement to accomplish each of the following
a.
b.
Baca satu integer dari papan kekunci dan simpan nilai tersebut dalam
pembolehubah markah sebagai integer
Read an integer from the keyboard and store the value entered in integer
variable markah
____________________________________________________________
c.
d.
21.
b.
scanf(d, nilai);
____________________________________________________________
c.
d.
____________________________________________________________
Scanf(%f, noInteger);
SULIT
3768/1
____________________________________________________________
[4 markah]
[4 marks]
22.
23.
x = 5 / 2 * 2 + 5 / 2 * 2;
x = ________________________
b.
x = ( 2 * 2 + ( 3 * 3 ( 6 / 2 * 3 ) ) );
x = ________________________
[2 markah]
[2 marks]
24.
25.
SULIT
3768/1
SECTION B
(30 marks)
Jawab 3 soalan daripada 5 soalan di bawah. Setiap soalan diperuntukkan 10 markah
Answer 3 questions from 5 questions below. Each question provide 10 marks.
1.
A
B
D
E
Gambarajah 1
Figure 1
a.
b.
___________________________
C.
___________________________
D.
___________________________
E.
__________________________
[5 markah]
[5 marks]
SULIT
3768/1
What is the function of component A?
____________________________________________________________
____________________________________________________________
[1 markah]
[1 mark]
c.
d.
Di dalam papan induk terdapat satu komponen yang amat penting yang
dikenali sebagai Unit Pemprosesan Pusat. Apakah peranan komponen
tersebut?
An important component is inside a motherboard. It is called Central
Processing Unit. What is it function?
___________________________________________________________
___________________________________________________________
[1 markah]
[1 mark]
e.
2.
___________________________________________________
ii.
___________________________________________________
[2 markah]
[2 marks]
10
SULIT
3768/1
There are 5 steps in software methodology method. Name that programming
methodology and explain it.
[10 markah]
[10 marks]
3.
11
SULIT
3768/1
1.
Mula
2.
Setkan simpanan = 0
3.
a.
4.
5.
Tamat
Apakah nilai akhir simpanan yang diperolehi daripada kod pseudo di atas.
What will be the value of simpanan from the pseudo code above.
____________________________________________________________
[1 markah]
[1 mark]
b.
c.
[5 markah]
[5 marks]
Tukarkan langkah 3 dalam kod pseudo di atas supaya menjadi gelung
dengan pembilang menurun
12
SULIT
3768/1
Convert step 3 in pseudo code above to produce a loop using decrease
counter
[4 markah]
[4 marks]
4.
13
SULIT
3768/1
[5 markah]
[5 marks]
14
SULIT
5.
3768/1
b.
Jika input bagi harga belian ialah 100 dan input bagi diskaun ialah 10,
paparkan output bagi aturcara ini.
If input for harga belian is 100 and input for diskaun is 10, display the
output for this program.
.
a.
15
SULIT
3768/1
Identify the program below
#include <stdio.h>
#include <math.h>
main() { int i,j;
printf("%d\n",
2); for (i = 3; i <= 100;
i = i + 1) {
for (j = 2;
j < i; j = j + 1) {
if (i % j == 0) break; if (j > sqrt(i)
printf
("%d\n", i); break;
}}}return 0;}
Tuliskan semula aturcara ini dalam format yang baik supaya aturcara ini
mudah dibaca dan difahami
Rewrite the program in proper layout so that program can easily read and
understood
[5 markah]
[5 marks]
b.
16
SULIT
3768/1
Figure 2 shows a computer networking topology
Gambarajah 2
Figure 2
i.
ii.
iii.
17
SULIT
3768/1
BAHAGIAN C
(20 markah)
SECTION C
(20 marks)
Jawab 1 soalan daripada 2 soalan di bawah. Setiap soalan diperuntukkan 20 markah
Answer 1 question from 2 questions below. Each question provide 20 marks.
1.
Zaidi ingin membina satu aturcara untuk mengira luas suatu segitiga.
Zaidi wants to develop a program to calculate area of a triangle
Input :
Output :
18
SULIT
3768/1
Build a complete program to describe this situation
[20 markah]
[20 marks]
19
SULIT
2.
3768/1
Bina satu aturcara yang membaca markah ujian memandu sebilangan calon
semasa di dalam gelung. Setelah keluar gelung, cetak hasilbahagi jumlah markah
dengan bilangan calon untuk mendapatkan purata markah.
(Panduan : Kumpulkan jumlah markah dan bilangan calon semasa di dalam
gelung. Setelah keluar gelung, cetak hasilbahagi jumlah markah dengan bilangan
calon untuk mendapatkan purata markah)
Build a program that read the mark of driving test while in the loop. After out of
the loop, print the division of total mark with number of candidate to get the
average mark.
(Guideline : Collect the total mark and number of candidate while in the loop.
After out of the loop, print the division of total mark with number of candidate to
get the average mark.
[20 markah]
[20 marks]
20