
Quiz tentang Rekursi dalam Pemrograman
Authored by Tuti Sumaryati
Computers
11th Grade
Used 11+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min ⢠4 pts
Apa itu rekursi dalam pemrograman?
Fungsi yang memanggil fungsi lain
Fungsi yang memanggil dirinya sendiri
Variabel yang digunakan dalam fungsi
Struktur data yang menyimpan data
Algoritma pengurutan data
2.
MULTIPLE CHOICE QUESTION
1 min ⢠4 pts
Apa yang dimaksud dengan kasus dasar dalam rekursi?
Kondisi yang menyebabkan fungsi berhenti memanggil dirinya sendiri
Fungsi yang dipanggil oleh fungsi lain
Nilai yang dikembalikan oleh fungsi
Parameter yang diterima oleh fungsi
Langkah-langkah dalam algoritma
3.
MULTIPLE CHOICE QUESTION
1 min ⢠4 pts
Berikut ini adalah contoh fungsi rekursif yang benar, kecuali:
int faktorial(int n) { if (n == 0) return 1; return n * faktorial(n - 1); }
int fibonacci(int n) { if (n <= 1) return n; return fibonacci(n - 1) + fibonacci(n - 2); }
int sum(int n) { return n + sum(n - 1); }
int power(int x, int y) { if (y == 0) return 1; return x * power(x, y - 1); }
int max(int a, int b) { return (a > b) ? a : b; }
4.
MULTIPLE CHOICE QUESTION
1 min ⢠4 pts
Fungsi rekursif yang memerlukan lebih dari satu pemanggilan dirinya sendiri disebut:
Rekursi langsung
Rekursi tidak langsung
Rekursi murni
Rekursi tertunda
Rekursi berlapis
5.
MULTIPLE CHOICE QUESTION
1 min ⢠4 pts
Fungsi rekursif yang memanggil dirinya sendiri dengan parameter yang lebih kecil disebut:
Rekursi langsung
Rekursi tidak langsung
Rekursi murni
Rekursi linear
Rekursi biner
6.
MULTIPLE CHOICE QUESTION
1 min ⢠4 pts
Bagaimana cara menghindari masalah stack overflow dalam rekursi?
Menambah jumlah variabel
Mengurangi jumlah panggilan rekursif
Menggunakan rekursi dengan kasus dasar yang tidak jelas
Meningkatkan ukuran stack
Menggunakan loop iteratif sebagai pengganti rekursi
7.
MULTIPLE CHOICE QUESTION
1 min ⢠4 pts
Apa yang dimaksud dengan rekursi tidak langsung?
Fungsi yang memanggil dirinya sendiri secara langsung
Fungsi yang memanggil fungsi lain yang pada gilirannya memanggil fungsi awal
Fungsi yang tidak memiliki kasus dasar
Fungsi yang memanggil banyak fungsi sekaligus
Fungsi yang mengakses variabel dari luar
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Komputer & Jaringan Dasar
Quiz
ā¢
10th - 12th Grade
20 questions
BERPIKIR KOMPUTASIONAL 10.12
Quiz
ā¢
1st Grade - University
20 questions
Integritas Aplikasi Perkantoran
Quiz
ā¢
10th Grade - University
20 questions
Tes Dasar MikroTik
Quiz
ā¢
10th - 12th Grade
20 questions
Kuis 04 - Jaringan Nirkabel
Quiz
ā¢
11th Grade
20 questions
Berfikir Komputansional
Quiz
ā¢
11th Grade
20 questions
REMIDI TEKNOLOGI LAYANAN JARINGAN
Quiz
ā¢
11th Grade
20 questions
K3LH
Quiz
ā¢
10th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
ā¢
3rd Grade
20 questions
Equivalent Fractions
Quiz
ā¢
3rd Grade
25 questions
Multiplication Facts
Quiz
ā¢
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
ā¢
9th Grade
22 questions
fractions
Quiz
ā¢
3rd Grade
11 questions
FOREST Effective communication
Lesson
ā¢
KG
20 questions
Main Idea and Details
Quiz
ā¢
5th Grade
20 questions
Context Clues
Quiz
ā¢
6th Grade
Discover more resources for Computers
20 questions
-AR -ER -IR present tense
Quiz
ā¢
10th - 12th Grade
22 questions
El Imperfecto
Quiz
ā¢
9th - 12th Grade
15 questions
ACT Reading Practice
Quiz
ā¢
11th Grade
20 questions
SSS/SAS
Quiz
ā¢
9th - 12th Grade
20 questions
verbos reflexivos en espaƱol
Quiz
ā¢
9th - 12th Grade
14 questions
Making Inferences From Samples
Quiz
ā¢
7th - 12th Grade
23 questions
CCG - CH8 Polygon angles and area Review
Quiz
ā¢
9th - 12th Grade
8 questions
Momentum and Collisions
Lesson
ā¢
9th - 12th Grade