Cbds MCQ
Cbds MCQ
A. 3
B. 6
C. 9
A. 3
B. 6
C. 9
A. person teacher;
B. struct person teacher;
C. struct teacher person;
A. person teacher;
B. struct person teacher;
C. struct teacher person;
Page 1 of 4
SAMPLE CBCP2202
3. Pointer is a special kind of variable which is used to store the _________ of the variable.
A. address
B. character
C. float
Apakah penuding adalah sejenis pembolehubah khas yang digunakan untuk menyimpan
________ pembolehubah.
A. alamat
B. aksara
C. apungan
4. “A group of data items that is sequential, in which insertions and deletions are made
anywhere in the structure”.
A. Array
B. Linked List
C. List
Sekumpulan item data yang berjujukan, di mana sisipan dan penghapusan dibuat mana-mana
sahaja dalam struktur.
A. Tatasusunan
B. Senarai terpaut
C. Senarai
Page 2 of 4
SAMPLE CBDS2103
6. What is the order of removal from a queue if the numbers 10, 5, 15 and 20 are placed in this
order, and then removed one at a time?
A. 5, 10, 15, 20
B. 10, 5, 15, 20
C. 20, 15, 5, 10
Apakah urutan pengeluaran dari giliran jika nombor 10, 5, 15 dan 20 diletakkan dalam susunan
ini, dan kemudian dikeluarkan satu demi satu?
A. 5, 10, 15, 20
B. 10, 5, 15, 20
C. 20, 15, 5, 10
7. A sorting algorithm divides the list into two parts: sorted and unsorted. Select the best
sorting algorithm that matches the description above.
A. Bubble Sort
B. Linear Insertion Sort
C. Simple Selection Sort
Algoritma isihan membahagikan senarai kepada dua bahagian: diisih dan tidak diisih. Pilih
algoritma isihan yang terbaik yang menepati huraian di atas.
A. Isih Gelembung
B. Isih Sisipan Linear
C. Isih Pilihan Mudah
8. Which of the following search techniques begins with the first record, and is done
continuously until the data is found or end of records is reached?
A. Binary Search
B. Binary Tree Search
C. Sequential Search
Manakah di antara teknik carian berikut bermula dengan rekod pertama, dan dilakukan secara
berterusan sehingga data didapati atau akhir rekod dicapai?
A. Carian Binari
B. Carian Pepohon Binari
C. Carian Berterusan
Page 3 of 4
SAMPLE CBCP2202
9. Where is the insertion of a new data item:R into this binary search tree (BST)?
H S
P T
A. To the right of H
B. To the right of P
C. To the left of T
Di manakah kemasukkan data item baru: R ke dalam pokok carian binari (BST) ini?
H S
P T
A. Ke kanan H
B. Ke kanan P
C. Ke kiri T
10. Select the most appropriate term for a graph with numbers labeled on the edges.
A. directed graph
B. simple graph
C. weighted graph
Pilih istilah yang paling sesuai untuk graf dengan nombor berlabel ditepi.
A. graf berarah
B. graf mudah
C. graf berpemberat
Page 4 of 4