1.
Diketahui suatu deklarasi Variabel int x, y, *z; variabel yang merupakan penunjuk ke pointer adalah...?
Correct Answer
C. Z
Explanation
The correct answer is "z" because the declaration "*z" indicates that "z" is a pointer variable.
2.
Perintah yang tepat untuk mempersiapkan node baru beserta alokasi memorinya adalah...?
Correct Answer
D. New
Explanation
The correct answer is "New". The question is asking for the appropriate command to prepare a new node and allocate memory for it. The command "New" is commonly used in programming languages to create a new instance or object and allocate memory for it.
3.
Jika Tail = Null, Maka kondisi Linked List adalah...?
Correct Answer
B. Kosong
Explanation
The correct answer is "Kosong" because "Kosong" means empty in Indonesian. Therefore, if the tail of the linked list is null, it indicates that the linked list does not have any elements and is empty.
4.
Untuk Menginputkan data "082297966699" maka Tipe Data yang paling sesuai adalah...?
Correct Answer
E. String
Explanation
The correct answer is "String" because the given data "082297966699" is a sequence of characters, which can be represented using a string data type.
5.
Array yang sering digunakan dalam menterjemahkan matriks pada pemrograman, adalah array berdimensi :
Correct Answer
B. Dua
Explanation
Array yang sering digunakan dalam menterjemahkan matriks pada pemrograman adalah array berdimensi dua. Array berdimensi dua digunakan untuk menyimpan data dalam bentuk matriks dengan baris dan kolom. Setiap elemen dalam array dua dimensi dapat diakses menggunakan dua indeks, yaitu indeks baris dan indeks kolom.
6.
Terdapat Array : A [3][4] maka jumlah elemen Array tersebut adalah ……
Correct Answer
E. 12
Explanation
The given array A has 3 rows and 4 columns. To find the total number of elements in the array, we multiply the number of rows by the number of columns. In this case, 3 x 4 = 12. Therefore, the answer is 12.
7.
Salah satu bentuk struktur data, berisi kumpulan data (node) yang tersusun secara sekuensial, saling sambung-menyambung, dinamis dan terbatas disebut...?
Correct Answer
D. Linked List
Explanation
Linked List adalah salah satu bentuk struktur data yang terdiri dari kumpulan data (node) yang tersusun secara sekuensial dan saling sambung-menyambung. Struktur data ini memiliki sifat dinamis, artinya ukuran dan jumlah elemen dalam Linked List dapat berubah seiring dengan penambahan atau penghapusan elemen. Selain itu, Linked List juga memiliki batasan yang terbatas, yaitu tergantung pada jumlah memori yang tersedia. Oleh karena itu, jawaban yang benar adalah Linked List.
8.
Menambah satu (increment) nilai TOP of STACK setiap ada penambahan elemen stack selama stack masih belum penuh, merupakan langkah awal pada operasi STACK yaitu …..
Correct Answer
A. PUSH
Explanation
The given correct answer for this question is PUSH because when a new element is added to the stack, the TOP of the stack is incremented. This is the initial step in the stack operation, where the TOP keeps track of the most recently added element in the stack.
9.
Yang tidak termasuk dalam operasi antrian, adalah ...
Correct Answer
C. Push
Explanation
The operation "Push" is not included in the queue operations. In a queue, elements are added at one end and removed from the other end, following the FIFO (First-In-First-Out) principle. However, the "Push" operation is typically used in stack data structures, where elements are added and removed from the same end, following the LIFO (Last-In-First-Out) principle. Therefore, "Push" is not a valid operation in the context of a queue.
10.
Prinsip kerja dari queue adalah:
Correct Answer
E. A dan C Benar
Explanation
The correct answer is "A dan C Benar". The principle of operation of a queue is "First In First Out" (FIFO), which means that the element that is inserted first will be the first one to be removed. Additionally, the principle of "Last In Last Out" (LILO) is also applicable in certain cases, where the last element inserted will be the last one to be removed. Therefore, both options A and C are correct.