Apa yang dimaksud dengan *array* dalam pemrograman?

Quiz Pemrograman Dasar

Quiz
•
Computers
•
12th Grade
•
Medium
Peserta PPG 06839
Used 1+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kumpulan data yang hanya berisi satu nilai
Kumpulan data yang berisi beberapa nilai dengan tipe yang sama
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara mengakses elemen ke-3 dari array `data = [5, 10, 15, 20]`?
`data[2]`
`data[3]`
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa output dari kode berikut ini? def tambah(a, b): return a + b hasil = tambah(3, 4) print(hasil)
7
34
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa hasil dari kode berikut ini? def hitung(p, q): return p * q nilai = hitung(5, 6) print(nilai)
11
30
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa perbedaan utama antara fungsi dan prosedur dalam pemrograman?
Fungsi tidak memiliki parameter, sedangkan prosedur memiliki
Fungsi mengembalikan nilai, sedangkan prosedur tidak
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa yang terjadi jika kita mencoba mengakses indeks yang tidak ada dalam sebuah array?
Terjadi *error* `IndexError`
Nilai `None` akan dikembalikan
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa hasil dari kode berikut ini? angka = [1, 2, 3, 4, 5] print(angka[4])
5
1
Create a free account and access millions of resources
Similar Resources on Quizizz
25 questions
UH BAB II

Quiz
•
9th Grade - University
26 questions
kuis K3LH kelas X TKJ

Quiz
•
12th Grade
25 questions
Quiz Bahasa C

Quiz
•
10th Grade - University
30 questions
Data Analysis Quiz

Quiz
•
7th Grade - University
25 questions
UJIAN MID SEM 2 KELAS 8

Quiz
•
8th Grade - University
25 questions
Ulangan Semester Gasal C++

Quiz
•
12th Grade
26 questions
ULANGAN HARIAN PEMROGRAMAN C

Quiz
•
12th Grade
25 questions
Quiz Microsoft Excel 12 PM SMK FAJAR

Quiz
•
12th 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
30 questions
Linear Inequalities

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

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