
9 Fungsi
Authored by Shynta Ayu Dwi Darmawan
Information Technology (IT)
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa yang dimaksud dengan fungsi dalam pemrograman?
Kumpulan variabel yang disimpan bersama
Blok kode yang dirancang untuk menjalankan tugas tertentu
Tipe data untuk menyimpan angka
Perulangan dalam program
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Manakah dari berikut ini yang BUKAN komponen utama dari sebuah fungsi?
Nama fungsi
Parameter
Return value
Compiler
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa yang dimaksud dengan parameter dalam fungsi?
Nilai yang dikembalikan fungsi
Input yang diterima oleh fungsi
Variabel global
Error message
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa output dari kode berikut? def tambah(a, b): return a + b print(tambah(3, 5))
35
8
15
Error
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Apa yang dimaksud dengan return value?
Input fungsi
Nilai yang dikembalikan fungsi setelah diproses
Nama fungsi
Jenis parameter
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Variabel yang hanya dapat diakses dalam fungsi disebut variabel...
Global
Lokal
Public
Private
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa output dari kode berikut? x = 10 def contoh(): x = 5 return x print(contoh()) print(x)
5 10
10 5
10 10
5 5
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?