
PHP Native (Array dan Fungsi)
Authored by sulthan Shihab
Information Technology (IT)
11th Grade
Used 2+ 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
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.
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
25 questions
Berpikir Komputasional
Quiz
ā¢
9th - 12th Grade
20 questions
KUIS TIK
Quiz
ā¢
9th Grade - University
20 questions
ASESMEN DIAGNOSTIK INFORMATIKA KELAS 9
Quiz
ā¢
9th Grade - University
20 questions
IoT 1.7
Quiz
ā¢
11th Grade
20 questions
PAS PRODUKTIF DKV
Quiz
ā¢
11th Grade
20 questions
UKD Informatika 9 TIK
Quiz
ā¢
9th - 12th Grade
20 questions
Web 3.4-3.5 Bacaan
Quiz
ā¢
11th Grade
20 questions
latsol PH Informatika kelas 11 Jarkom
Quiz
ā¢
11th Grade - University
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 Information Technology (IT)
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