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
Similar Resources on Wayground
20 questions
ASSESMEN SUMATIF 1 KELAS XI - JARINGAN KOMPUTER & INTERNET-

Quiz
•
11th Grade - University
20 questions
XI Kuis Analisis Data

Quiz
•
10th Grade - University
20 questions
Quiz BAB 6 - Proyek Analisis Data

Quiz
•
11th Grade
20 questions
ASESMEN DIAGNOSTIK INFORMATIKA KELAS 7

Quiz
•
7th Grade - University
25 questions
XII RPL Quizziz Pertemuan 3 Migrasi Database & Seeder

Quiz
•
12th Grade
25 questions
Kelas 9 - Halaman 49 (PTS)

Quiz
•
9th Grade - University
20 questions
Jaringan Komputer dan Internet

Quiz
•
11th Grade - University
20 questions
BAB 5 ANALISIS DATA B. Membaca dan Menafsirkan Data KELAS 5

Quiz
•
5th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade
16 questions
AP Biology: Unit 1 Review (CED)

Quiz
•
9th - 12th Grade
7 questions
SAT Reading & Writing Practice Test - Reading Focus

Quiz
•
11th Grade
20 questions
Parallel lines and transversals

Quiz
•
9th - 12th Grade