XI RPL Quizziz Pertemuan 3 XI RPL (Array dan Fungsi)
Quiz
•
Information Technology (IT)
•
11th Grade
•
Hard
SULTHAN SHIHAB
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Struktur data di PHP yang memungkinkan kita menyimpan banyak nilai dalam satu variabel tunggal adalah...
Variabel Tunggal
Konstanta
Array
Objek
Fungsi
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Manakah cara penulisan Indexed Array di PHP yang PALING disarankan saat ini?
$buah = array("Apel", "Jeruk");
$buah = ["Apel", "Jeruk"];
$buah[] = "Apel"; $buah[] = "Jeruk";
$buah = "Apel", "Jeruk";
$buah = new Array("Apel", "Jeruk");
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jika Anda memiliki $siswa = ["Budi", "Ani", "Cahyo"];, bagaimana cara Anda mengakses nama "Ani"?
$siswa[1]
$siswa[Ani]
$siswa{1}
$siswa.1
$siswa->Ani
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Indeks awal (pertama) pada Indexed Array di PHP selalu dimulai dari angka...
1
0
-1
Bebas
Tergantung jumlah elemen
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Anda ingin menyimpan data profil pengguna yang terdiri dari "nama", "email", dan "umur". Jenis array yang paling sesuai untuk kasus ini adalah...
Indexed Array
Associative Array
Multidimensional Array
Numeric Array
Mixed Array
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Perhatikan kode berikut: <?php
$produk = [
"nama" => "Laptop",
"harga" => 12000000,
"stok" => 50
];
echo $produk["harga"];
?> Output dari kode di atas adalah...
Laptop
12000000
stok
50
nama
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa fungsi utama dari foreach loop ketika digunakan dengan array?
Untuk mengulang kode berdasarkan jumlah yang diketahui.
Untuk mengulang elemen array tanpa perlu mengelola indeks secara manual.
Untuk menambahkan elemen ke array.
Untuk menghapus elemen dari array.
Untuk mengurutkan elemen array.
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Uji Pengetahuan Teknologi Informasi
Quiz
•
9th Grade - University
20 questions
Pemahaman Berfikir Komputasional
Quiz
•
9th Grade - University
20 questions
Dasar Microsoft Excel
Quiz
•
9th - 12th Grade
20 questions
Analisis Arsitektur dan Desain PD 5
Quiz
•
University
20 questions
Celik AI Bijak Pustaka
Quiz
•
9th - 12th Grade
20 questions
Proses Komputasional dan Pseudocode
Quiz
•
10th Grade - University
20 questions
Analisis Kinerja Komputer
Quiz
•
12th Grade - University
20 questions
UTS Digimin FEB
Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Information Technology (IT)
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
17 questions
Afro Latinos: Una Historia Breve Examen
Quiz
•
9th - 12th Grade
17 questions
Hispanic Heritage Month Trivia
Quiz
•
9th - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
15 questions
PRESENTE CONTINUO
Quiz
•
9th - 12th Grade