Quiz SDA 2 TK
Quiz SDA 2 TK
The name and photo associated with your Google account will be recorded when you upload
files and submit this form. Your email is not part of your response.
* Required
Name *
Email *
dicky20tk@mahasiswa.pcr.ac.id
True
False
Apa yang terjadi jika sebuah method rekursif tidak mempunyai base 4 points
condition *
Queue Overflow
Stack Overflow
Queue Underflow
Stack Underflow
Dalam metode sequential search worst case (kondisi terburuk) akan 4 points
diperoleh jika *
Pada metode interpolation search, elemen yang dicari akan disimpulkan 4 points
"tidak ada" jika? *
elemenDiCari != value[mid]
Metode searching yang mengharuskan data sudah dalam kondisi terurut 4 points
adalah, kecuali *
Sequential search
Binary Search
Interpolation Search
Jump Search
Salah satu keuntungan dari selection sort adalah tidak memerlukan 4 points
proses pertukaran data terjadi pada looping luar, di looping dalam hanya menukarkan
index
linked list
tree
array
graph
Sebuah full binary tree dengan jumlah leaves = n, terdiri atas * 4 points
n nodes
log2n nodes
2n - 1 nodes
2n + 1 nodes
Perhatikan pernyataan berikut (1) Sebuah node adalah parent node jika dia 4 points
memiliki node successor (2) Sebuah node adalah child node jika
derajatnya minimal 1 *
True, True
True, False
False, True
False, False
(1) Nilai terkecil pada sebuah binary search tree akan terdapat pada .... (2) 6 points
sementara nilai terbesarnya terdapat pada .... *
1. Kiri, 2. Kanan
Gambarkan Binary Search Tree yang terbentuk jika urutan data yang 6 points
diinput sebagai berikut : 50 72 96 94 107 26 12 11 9 2 10 25 51 16 17 95 *
6/5
pada level berapa node terkecil berada (level dimulai dari 0) * 6 points
seandainya node root di hapus dari tree yang terbentuk diatas, siapakah 6 points
1: start
2: input x, y.
3: print x, y.
4: x = x + y.
5: y= x - y.
6: x =x - y.
7: print x, y.
8: finish.
Add file
This form was created inside of Politeknik Caltex Riau. Report Abuse
Forms