Apa hasil dari fungsi berikut jika dipanggil `f(3)`?
UH INFORMATIKA KELAS XI BAB 2

Quiz
•
Computers
•
11th Grade
•
Hard
Kamal Putra
Used 10+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
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 Quizizz
20 questions
Pretest C++

Quiz
•
11th Grade
25 questions
PTS Informatika Kelas XI 2024

Quiz
•
11th Grade - University
15 questions
ULANGAN HARIAN INFORMATIKA 5

Quiz
•
11th Grade
20 questions
Arrays in Java

Quiz
•
9th - 12th Grade
25 questions
Latihan Soal Pemrograman

Quiz
•
11th Grade
22 questions
PTS Semester Ganjil

Quiz
•
11th Grade
16 questions
Strategi Algoritmik dan Pemrograman

Quiz
•
11th Grade
25 questions
KISI - KISI UTS 2023 KLS XI INFORMATIKA BAB 1-2

Quiz
•
11th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University