UH INFORMATIKA KELAS XI BAB 2

Quiz
•
Computers
•
11th Grade
•
Hard
Kamal Putra
Used 11+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Apa hasil dari fungsi berikut jika dipanggil `f(3)`?
1
2
3
4
5
2.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Berapakah hasil dari `factorial(5)` jika fungsi `factorial` didefinisikan sebagai berikut?
24
60
120
150
200
3.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Algoritma greedy biasanya digunakan untuk menyelesaikan masalah...
berbasis pengambilan keputusan yang selalu optimal
berbasis pendekatan brute-force
yang hanya memiliki satu solusi tunggal
yang memiliki banyak solusi optimal
yang hanya bisa dipecahkan dengan rekursi
4.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Berapakah output dari program berikut?
3
5
7
9
Error
5.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Bagaimana cara menambahkan nilai ke akhir array di C++ jika ukuran array tetap?
`arr[size + 1] = value;`
`arr.push(value);`
`arr[size - 1] = value;`
`Tidak bisa menambah nilai ke array tetap.`
`arr[size++] = value;`
6.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Fungsi rekursif membutuhkan sebuah...
Loop
Kondisi dasar
Parameter tambahan
Variabel global
Operator modulo
7.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Salah satu contoh klasik dari algoritma greedy adalah...
Pencarian biner
Penyusunan urutan faktorial
Penyelesaian masalah knapsack
Algoritma DFS
Penyusunan matriks
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Soal Latihan Asas F1 B

Quiz
•
11th Grade
25 questions
UTS Informatika Algoritma dan Pemrograman

Quiz
•
11th Grade
20 questions
Soal Bahasa C++

Quiz
•
11th Grade
20 questions
soal berpikir komputasional kelas 8 gasal

Quiz
•
8th Grade - University
15 questions
JS Talks, Quiz #5

Quiz
•
1st - 12th Grade
15 questions
Latihan Soal Berpikir Komputasional

Quiz
•
7th Grade - University
22 questions
AP CSA Algorithms Practise

Quiz
•
11th Grade
15 questions
Latihan Soal dan Kisi-Kisi Kelas 11

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade